Skip to content
Snippets Groups Projects
Unverified Commit 9291fe58 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: fix --display-cop-names.

parent 6371ecd1
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment