Merge pull request #2853 from GauthamGoli/disable-strict-cops-brew-style
style: Don't run FormulaAuditStrict cops when `brew style foo` cmd is executed
This commit is contained in:
commit
81dbc29566
@ -46,6 +46,8 @@ module Homebrew
|
|||||||
options[:only_cops] = only_cops
|
options[:only_cops] = only_cops
|
||||||
elsif !except_cops.empty?
|
elsif !except_cops.empty?
|
||||||
options[:except_cops] = except_cops
|
options[:except_cops] = except_cops
|
||||||
|
elsif only_cops.empty? && except_cops.empty?
|
||||||
|
options[:except_cops] = %w[FormulaAuditStrict FormulaAudit]
|
||||||
end
|
end
|
||||||
|
|
||||||
Homebrew.failed = check_style_and_print(target, options)
|
Homebrew.failed = check_style_and_print(target, options)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user