From 5b3231ea0ab23aae7c552142049e99afe0d72b4b Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Sat, 15 Jul 2017 22:40:26 +0530 Subject: style: disable NewFormulaAudit cops' execution by default unless specified --- Library/Homebrew/cmd/style.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 7158fe5b9..14499f24b 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) -- cgit v1.2.3 From 086e540231691bca054b70e79ec37cc344b14d37 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Tue, 18 Jul 2017 19:10:12 +0530 Subject: Add a rubocop config file to control cops' execution in audit and style --- Library/Homebrew/cmd/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 14499f24b..b0f46fadc 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -109,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 -- cgit v1.2.3