aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2017-07-28 11:25:21 +0100
committerGitHub2017-07-28 11:25:21 +0100
commitac2cbd2137006ebfe84d8584ccdcb5d78c1130d9 (patch)
tree04225e20d9f00a163da1cc8b7297bc1ad464fa2d
parenta49d99a2d6a22f9db1540cb546ac2d7be2fb5703 (diff)
parent0c04b9041a67e54ed45d7e2e37e7e7e6aec03bc9 (diff)
downloadbrew-ac2cbd2137006ebfe84d8584ccdcb5d78c1130d9.tar.bz2
Merge pull request #2957 from GauthamGoli/testbot-newformula-stylechecks-fix
audit: Run style violations check when `--new-formula` is passed
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index b15d719d2..b6f9e5106 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -88,9 +88,9 @@ module Homebrew
options[:only_cops] = only_cops
ARGV.push("--only=style")
elsif new_formula
- options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict, :NewFormulaAudit]
+ nil
elsif strict
- options[:only_cops] = [:FormulaAudit, :FormulaAuditStrict]
+ options[:except_cops] = [:NewFormulaAudit]
elsif !except_cops.empty?
options[:except_cops] = except_cops
elsif !strict