Merge pull request #2980 from GauthamGoli/audit_style_check_bug_fix

audit: fix bug where `brew audit foo` runs every style check.
This commit is contained in:
Mike McQuaid 2017-08-01 11:36:18 +01:00 committed by GitHub
commit 43d68b6dda

View File

@ -94,7 +94,7 @@ module Homebrew
elsif !except_cops.empty? elsif !except_cops.empty?
options[:except_cops] = except_cops options[:except_cops] = except_cops
elsif !strict elsif !strict
options[:except_cops] = [:FormulaAuditStrict, :NewFormulaAudit] options[:only_cops] = [:FormulaAudit]
end end
# Check style in a single batch run up front for performance # Check style in a single batch run up front for performance