diff --git a/.rubocop.yml b/.rubocop.yml index a6747a0..b96a58d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,3 +16,25 @@ Style/StringLiteralsInInterpolation: Layout/LineLength: Max: 120 + +Metrics/ClassLength: + Enabled: false + +Metrics/MethodLength: + Enabled: false + +Metrics/BlockLength: + Enabled: false + +Minitest/EmptyLineBeforeAssertionMethods: + Enabled: false + +Naming/MethodParameterName: + Enabled: false + +Naming/VariableNumber: + Enabled: false + +Style/Documentation: + Enabled: false + diff --git a/degem.gemspec b/degem.gemspec index 083e87d..7047bfb 100644 --- a/degem.gemspec +++ b/degem.gemspec @@ -9,7 +9,10 @@ Gem::Specification.new do |spec| spec.email = ["riccardo.odone@gmail.com"] spec.summary = "Find unused gems in the Ruby bundle" - spec.description = "Degem finds unused gems in the Ruby bundle (ie, an app with a `Gemfile` or a gem with both a `Gemfile` and a gemspec)." + spec.description = [ + "Degem finds unused gems in the Ruby bundle", + "(ie, an app with a `Gemfile` or a gem with both a `Gemfile` and a gemspec)." + ].join(" ") spec.homepage = "https://github.com/3v0k4/degem" spec.license = "MIT" spec.required_ruby_version = ">= 3.1.0" diff --git a/lib/degem/find_unused.rb b/lib/degem/find_unused.rb index e10f15f..81ac2d5 100644 --- a/lib/degem/find_unused.rb +++ b/lib/degem/find_unused.rb @@ -98,7 +98,7 @@ def based_on_top_composite_call(rubygem, line) regex = %r{ (?