From 0c04b9041a67e54ed45d7e2e37e7e7e6aec03bc9 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Fri, 28 Jul 2017 05:01:01 +0530 Subject: [PATCH] audit: Check for style violations when `--new-formula` is passed --- Library/Homebrew/dev-cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index b15d719d28..b6f9e5106c 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