Skip to content
Snippets Groups Projects
Commit 086e5402 authored by Gautham Goli's avatar Gautham Goli
Browse files

Add a rubocop config file to control cops' execution in audit and style

parent 5b3231ea
No related branches found
No related tags found
No related merge requests found
inherit_from:
- ./.rubocop.yml
NewFormulaAudit:
Enabled: true
......@@ -6,47 +6,14 @@ AllCops:
require: ./Homebrew/rubocops.rb
FormulaAudit/Text:
FormulaAudit:
Enabled: true
FormulaAudit/Caveats:
FormulaAuditStrict:
Enabled: true
FormulaAudit/Checksum:
Enabled: true
FormulaAudit/ChecksumCase:
Enabled: true
FormulaAudit/Conflicts:
Enabled: true
FormulaAudit/Options:
Enabled: true
FormulaAuditStrict/Options:
Enabled: true
NewFormulaAudit/Options:
Enabled: true
FormulaAuditStrict/BottleBlock:
Enabled: true
FormulaAuditStrict/Desc:
Enabled: true
FormulaAuditStrict/ComponentsOrder:
Enabled: true
FormulaAuditStrict/ComponentsRedundancy:
Enabled: true
FormulaAudit/Homepage:
Enabled: true
FormulaAudit/LegacyPatches:
Enabled: true
NewFormulaAudit:
Enabled: false
# `system` is a special case and aligns on second argument
Layout/AlignParameters:
......
......@@ -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
......
......@@ -4,12 +4,12 @@ describe "brew style" do
around(:each) do |example|
begin
FileUtils.ln_s HOMEBREW_LIBRARY_PATH, HOMEBREW_LIBRARY/"Homebrew"
FileUtils.ln_s HOMEBREW_LIBRARY_PATH.parent/".rubocop.yml", HOMEBREW_LIBRARY/".rubocop.yml"
FileUtils.ln_s HOMEBREW_LIBRARY_PATH.parent/".rubocop.yml", HOMEBREW_LIBRARY/".auditcops.yml"
example.run
ensure
FileUtils.rm_f HOMEBREW_LIBRARY/"Homebrew"
FileUtils.rm_f HOMEBREW_LIBRARY/".rubocop.yml"
FileUtils.rm_f HOMEBREW_LIBRARY/".auditcops.yml"
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment