From da77f23bc7007628f000ca4854902c8dcef0a27d Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 20 Jan 2018 23:21:25 -0800 Subject: [PATCH] rubocop: don't always display cop names. --- Library/.rubocop.yml | 1 + Library/Homebrew/test/cmd/style_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index d93d1bd8b4..f43fbe54c0 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -3,6 +3,7 @@ AllCops: Exclude: - '**/Casks/**/*' - '**/vendor/**/*' + DisplayCopNames: false require: ./Homebrew/rubocops.rb diff --git a/Library/Homebrew/test/cmd/style_spec.rb b/Library/Homebrew/test/cmd/style_spec.rb index 61faa4af2a..5c118f32ec 100644 --- a/Library/Homebrew/test/cmd/style_spec.rb +++ b/Library/Homebrew/test/cmd/style_spec.rb @@ -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