aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorGautham Goli2017-07-03 11:42:16 +0530
committerGautham Goli2017-07-03 12:54:04 +0530
commite9dfa736bf068975a196b4a077ad781a193b142e (patch)
tree245ed69cb78b763372344e97b11f902e82a72178 /Library/Homebrew
parentbfe4eed034487b2cc353e8f7b0107fbb00c974d7 (diff)
downloadbrew-e9dfa736bf068975a196b4a077ad781a193b142e.tar.bz2
style: Don't run FormulaAuditStrict cops when `brew style some_formula` cmd is executed
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/style.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index c6201e371..5cee295b6 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -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)