Skip to content

Commit

Permalink
Merge pull request #913 from rubocop-hq/fix-edge-rubocop-0.84-offences
Browse files Browse the repository at this point in the history
Fix RuboCop edge 0.84 offences
  • Loading branch information
bquorning committed May 21, 2020
2 parents c7a6644 + bc0459d commit 2c5cc12
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
23 changes: 13 additions & 10 deletions .rubocop.yml
Expand Up @@ -16,16 +16,8 @@ AllCops:
Layout/HashAlignment:
Enabled: false

Metrics/BlockLength:
Exclude:
- rubocop-rspec.gemspec
- Rakefile
- '**/*.rake'
- spec/**/*.rb

Naming/FileName:
Exclude:
- lib/rubocop-rspec.rb
Layout/LineLength:
Max: 80 # default: 120

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Expand All @@ -42,6 +34,17 @@ Lint/InterpolationCheck:
Exclude:
- spec/**/*.rb

Metrics/BlockLength:
Exclude:
- rubocop-rspec.gemspec
- Rakefile
- '**/*.rake'
- spec/**/*.rb

Naming/FileName:
Exclude:
- lib/rubocop-rspec.rb

RSpec/ExampleLength:
Max: 30

Expand Down
9 changes: 6 additions & 3 deletions Rakefile
Expand Up @@ -42,9 +42,12 @@ task confirm_config: :build_config do
_, stdout, _, process =
Open3.popen3('git diff --exit-code config/default.yml')

unless process.value.success?
raise "default.yml is out of sync:\n\n#{stdout.read}\nRun bin/build_config"
end
raise <<~ERROR unless process.value.success?
default.yml is out of sync:
#{stdout.read}
Run bin/build_config
ERROR
end

desc 'Confirm documentation is up to date'
Expand Down

0 comments on commit 2c5cc12

Please sign in to comment.