audit: Check for style violations when --new-formula
is passed
This commit is contained in:
parent
a49d99a2d6
commit
0c04b9041a
@ -88,9 +88,9 @@ module Homebrew
|
|||||||
options[:only_cops] = only_cops
|
options[:only_cops] = only_cops
|
||||||
ARGV.push("--only=style")
|
ARGV.push("--only=style")
|
||||||
elsif new_formula
|
elsif new_formula
|
||||||
options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict, :NewFormulaAudit]
|
nil
|
||||||
elsif strict
|
elsif strict
|
||||||
options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict]
|
options[:except_cops] = [:NewFormulaAudit]
|
||||||
elsif !except_cops.empty?
|
elsif !except_cops.empty?
|
||||||
options[:except_cops] = except_cops
|
options[:except_cops] = except_cops
|
||||||
elsif !strict
|
elsif !strict
|
||||||
|
Loading…
x
Reference in New Issue
Block a user