rubocop: don't always display cop names.

This commit is contained in:
ilovezfs 2018-01-20 23:21:25 -08:00
parent c8423b6d6e
commit da77f23bc7
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