style: Don't run FormulaAuditStrict cops when brew style some_formula cmd is executed

This commit is contained in:
Gautham Goli 2017-07-03 11:42:16 +05:30
parent bfe4eed034
commit e9dfa736bf

View File

@ -46,6 +46,8 @@ module Homebrew
options[:only_cops] = only_cops
elsif !except_cops.empty?
options[:except_cops] = except_cops
elsif only_cops.empty? && except_cops.empty?
options[:except_cops] = %w[FormulaAuditStrict FormulaAudit]
end
Homebrew.failed = check_style_and_print(target, options)