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:
parent
cea796c09b
commit
5b31507fda
@ -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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
inherit_from:
|
||||
- ../.rubocop_common.yml
|
||||
- ../.rubocop.yml
|
||||
- .rubocop_todo.yml
|
||||
|
||||
AllCops:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user