aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-07-21 14:41:40 +0100
committerGitHub2017-07-21 14:41:40 +0100
commit9747bc397a43f082aaaec24d4583ec465349eead (patch)
tree632582819dcd7d0db8850df3bc1982b1dcc962ae /Library/Homebrew/cmd
parente0560ff363d5efa177cf567281e78f73848557b4 (diff)
parent086e540231691bca054b70e79ec37cc344b14d37 (diff)
downloadbrew-9747bc397a43f082aaaec24d4583ec465349eead.tar.bz2
Merge pull request #2906 from GauthamGoli/new_formula_rubocop_fix
style: disable NewFormulaAudit cops' execution by default unless specified
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/style.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index 7158fe5b9..b0f46fadc 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -47,7 +47,9 @@ module Homebrew
elsif !except_cops.empty?
options[:except_cops] = except_cops
elsif only_cops.empty? && except_cops.empty?
- options[:except_cops] = %w[FormulaAuditStrict FormulaAudit]
+ options[:except_cops] = %w[FormulaAudit
+ FormulaAuditStrict
+ NewFormulaAudit]
end
Homebrew.failed = check_style_and_print(target, options)
@@ -107,7 +109,7 @@ module Homebrew
args << "--config" << HOMEBREW_LIBRARY_PATH/".rubocop.yml"
args << HOMEBREW_LIBRARY_PATH
else
- args << "--config" << HOMEBREW_LIBRARY/".rubocop.yml"
+ args << "--config" << HOMEBREW_LIBRARY/".auditcops.yml"
args += files
end