From d3cb0a2b957474aed5b761d539582313ee314ca7 Mon Sep 17 00:00:00 2001 From: Nikita Shilnikov Date: Sun, 12 Nov 2023 15:37:46 +0100 Subject: [PATCH] rubocop -A --- lib/dry/auto_inject/dependency_map.rb | 2 +- spec/integration/kwargs/super_initialize_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dry/auto_inject/dependency_map.rb b/lib/dry/auto_inject/dependency_map.rb index ff8db61..52215bf 100644 --- a/lib/dry/auto_inject/dependency_map.rb +++ b/lib/dry/auto_inject/dependency_map.rb @@ -5,7 +5,7 @@ module AutoInject DuplicateDependencyError = Class.new(StandardError) DependencyNameInvalid = Class.new(StandardError) - VALID_NAME = /([a-z_][a-zA-Z_0-9]*)$/.freeze + VALID_NAME = /([a-z_][a-zA-Z_0-9]*)$/ class DependencyMap def initialize(*dependencies) diff --git a/spec/integration/kwargs/super_initialize_spec.rb b/spec/integration/kwargs/super_initialize_spec.rb index b8d5c85..e636a96 100644 --- a/spec/integration/kwargs/super_initialize_spec.rb +++ b/spec/integration/kwargs/super_initialize_spec.rb @@ -112,8 +112,7 @@ def initialize(*args) Class.new do # rubocop:disable Lint/RedundantCopDisableDirective # rubocop:disable Style/RedundantInitialize - def initialize - end + def initialize; end # rubocop:enable Style/RedundantInitialize # rubocop:enable Lint/RedundantCopDisableDirective end