Merge pull request #2957 from GauthamGoli/testbot-newformula-stylechecks-fix

audit: Run style violations check when `--new-formula` is passed
This commit is contained in:
Mike McQuaid 2017-07-28 11:25:21 +01:00 committed by GitHub
commit ac2cbd2137

View File

@ -88,9 +88,9 @@ module Homebrew
options[:only_cops] = only_cops
ARGV.push("--only=style")
elsif new_formula
options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict, :NewFormulaAudit]
nil
elsif strict
options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict]
options[:except_cops] = [:NewFormulaAudit]
elsif !except_cops.empty?
options[:except_cops] = except_cops
elsif !strict