From 9291fe583eeb624b7b089e43dda601e241b0ea6f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 2 Sep 2019 10:48:19 +0100 Subject: [PATCH] audit: fix --display-cop-names. --- Library/Homebrew/dev-cmd/audit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 538bc807ec..5276577b69 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -109,7 +109,6 @@ module Homebrew options[:only_cops] = [:FormulaAudit] end - options[:display_cop_names] = args.display_cop_names? # Check style in a single batch run up front for performance style_results = Style.check_style_json(files, options) @@ -118,6 +117,8 @@ module Homebrew only = only_cops ? ["style"] : args.only options = { new_formula: new_formula, strict: strict, online: online, only: only, except: args.except } options[:style_offenses] = style_results.file_offenses(f.path) + options[:display_cop_names] = args.display_cop_names? + fa = FormulaAuditor.new(f, options) fa.audit next if fa.problems.empty? && fa.new_formula_problems.empty?