From e9dfa736bf068975a196b4a077ad781a193b142e Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Mon, 3 Jul 2017 11:42:16 +0530 Subject: [PATCH] style: Don't run FormulaAuditStrict cops when `brew style some_formula` cmd is executed --- Library/Homebrew/cmd/style.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index c6201e3711..5cee295b69 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)