diff --git a/.rubocop.yml b/.rubocop.yml index ea8eee74..954ef823 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,6 +7,9 @@ AllCops: - 'vendor/bundle/**/*' - 'spec/fixtures/**/*' +Layout/LineLength: + Max: 120 + Lint/UnusedMethodArgument: IgnoreEmptyMethods: true @@ -26,9 +29,6 @@ Metrics/BlockLength: Exclude: - 'spec/**/*.rb' -Metrics/LineLength: - Max: 120 - Metrics/MethodLength: Max: 25 diff --git a/spec/i18n_tasks_spec.rb b/spec/i18n_tasks_spec.rb index 6b596434..793c386a 100644 --- a/spec/i18n_tasks_spec.rb +++ b/spec/i18n_tasks_spec.rb @@ -20,7 +20,9 @@ s.sub(%r{^warning: parser/cur.*?https://github.com/whitequark/parser#compatibility-with-ruby-mri\.\n}m, '') .gsub(/^.*warning: constant ::(?:Fixnum|Bignum) is deprecated\n/, '') end - clean_coverage_logging = ->(s) { s.sub(/(?:\n^|\A)(?:Coverage = |.*Reporting coverage|JSON Coverage report).*(?:$\n|\z)/i, '') } + clean_coverage_logging = lambda { |s| + s.sub(/(?:\n^|\A)(?:Coverage = |.*Reporting coverage|JSON Coverage report).*(?:$\n|\z)/i, '') + } [ proc do out, err, status = run.call('bundle exec ../../bin/i18n-tasks')