Use Library/.rubocop.yml file.

This allows having a shared style that’s use for Homebrew/brew and taps
which can be overridden by Homebrew/brew.
This commit is contained in:
Mike McQuaid 2016-10-01 12:13:09 +01:00
parent cea796c09b
commit 5b31507fda
3 changed files with 11 additions and 2 deletions

View File

@ -73,6 +73,15 @@ Style/EmptyLineBetweenDefs:
Style/FileName:
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
Style/GuardClause:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IfUnlessModifier:
Enabled: false
Style/IndentArray:
EnforcedStyle: special_inside_parentheses

View File

@ -1,5 +1,5 @@
inherit_from:
- ../.rubocop_common.yml
- ../.rubocop.yml
- .rubocop_todo.yml
AllCops:

View File

@ -56,7 +56,7 @@ module Homebrew
args << "--config" << HOMEBREW_LIBRARY_PATH/".rubocop.yml"
args += [HOMEBREW_LIBRARY_PATH]
else
args << "--config" << Tap::TAP_DIRECTORY/".rubocop.yml"
args << "--config" << HOMEBREW_LIBRARY/".rubocop.yml"
args << "--format" << "simple"
args += files
end