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)