aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/style.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-07-07 15:43:55 +0100
committerGitHub2017-07-07 15:43:55 +0100
commit81dbc29566a85f817b5a33c98fc5868d250784cf (patch)
treeffdd89190ee0000429b9248b4e6afbe0a5ba3d18 /Library/Homebrew/cmd/style.rb
parent1406f89ac5ded71eac9f4493ad3f9758287aaded (diff)
parente9dfa736bf068975a196b4a077ad781a193b142e (diff)
downloadbrew-81dbc29566a85f817b5a33c98fc5868d250784cf.tar.bz2
Merge pull request #2853 from GauthamGoli/disable-strict-cops-brew-style
style: Don't run FormulaAuditStrict cops when `brew style foo` cmd is executed
Diffstat (limited to 'Library/Homebrew/cmd/style.rb')
-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 51937c3e5..7158fe5b9 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)