Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Dec 22, 2020
1 parent a8c3e34 commit 83330a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ AllCops:
- 'vendor/bundle/**/*'
- 'spec/fixtures/**/*'

Layout/LineLength:
Max: 120

Lint/UnusedMethodArgument:
IgnoreEmptyMethods: true

Expand All @@ -26,9 +29,6 @@ Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'

Metrics/LineLength:
Max: 120

Metrics/MethodLength:
Max: 25

Expand Down
4 changes: 3 additions & 1 deletion spec/i18n_tasks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 83330a7

Please sign in to comment.