Merge pull request #3710 from ilovezfs/rubocop-no-display-cop-names-default

rubocop: don't always display cop names.
This commit is contained in:
ilovezfs 2018-01-21 07:43:44 -08:00 committed by GitHub
commit 97f0ef4c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ AllCops:
Exclude:
- '**/Casks/**/*'
- '**/vendor/**/*'
DisplayCopNames: false
require: ./Homebrew/rubocops.rb

View File

@ -28,7 +28,7 @@ describe "brew style" do
rubocop_result = Homebrew.check_style_json([formula])
expect(rubocop_result.file_offenses(formula.realpath.to_s).map(&:message))
.to include("Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.")
.to include("Extra empty line detected at class body beginning.")
end
end
end