style: disable NewFormulaAudit cops' execution by default unless specified
This commit is contained in:
parent
fb90154589
commit
5b3231ea0a
@ -28,7 +28,7 @@ FormulaAuditStrict/Options:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
NewFormulaAudit/Options:
|
NewFormulaAudit/Options:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
FormulaAuditStrict/BottleBlock:
|
FormulaAuditStrict/BottleBlock:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|||||||
@ -47,7 +47,9 @@ module Homebrew
|
|||||||
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?
|
elsif only_cops.empty? && except_cops.empty?
|
||||||
options[:except_cops] = %w[FormulaAuditStrict FormulaAudit]
|
options[:except_cops] = %w[FormulaAudit
|
||||||
|
FormulaAuditStrict
|
||||||
|
NewFormulaAudit]
|
||||||
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