Be explicit about what we are excluding in RuboCop
This allows us to consistently lint test casks, and also will make future updates to the list of files we lint a bit easier.
This commit is contained in:
parent
36e915b826
commit
ea1c6d2948
21
.rubocop.yml
21
.rubocop.yml
|
@ -5,18 +5,25 @@ AllCops:
|
|||
- '**/Gemfile'
|
||||
- '**/Rakefile'
|
||||
- '**/brew-cask.rb'
|
||||
- '**/spec/*.rb'
|
||||
- '**/spec/support/*.rb'
|
||||
- '**/test/*.rb'
|
||||
- '**/test/support/*.rb'
|
||||
- 'developer/**/*'
|
||||
- 'lib/**/*'
|
||||
- 'spec/**/*'
|
||||
- 'test/**/*'
|
||||
- 'spec/cask/**/*'
|
||||
- 'test/cask/**/*'
|
||||
- 'test/Casks/**/*'
|
||||
- 'test/plist/**/*'
|
||||
- 'test/support/shared_examples/**/*'
|
||||
|
||||
Metrics/LineLength:
|
||||
Exclude:
|
||||
- 'Casks/**/*'
|
||||
- '**/Casks/**/*'
|
||||
|
||||
Performance/StringReplacement:
|
||||
Exclude:
|
||||
- 'Casks/**/*'
|
||||
- '**/Casks/**/*'
|
||||
|
||||
Style/AlignHash:
|
||||
EnforcedHashRocketStyle: table
|
||||
|
@ -27,15 +34,15 @@ Style/BarePercentLiterals:
|
|||
|
||||
Style/Documentation:
|
||||
Exclude:
|
||||
- 'Casks/**/*'
|
||||
- '**/Casks/**/*'
|
||||
|
||||
Style/EmptyElse:
|
||||
Exclude:
|
||||
- 'Casks/**/*'
|
||||
- '**/Casks/**/*'
|
||||
|
||||
Style/FileName:
|
||||
Exclude:
|
||||
- 'Casks/**/*'
|
||||
- '**/Casks/**/*'
|
||||
|
||||
Style/HashSyntax:
|
||||
EnforcedStyle: hash_rockets
|
||||
|
|
Loading…
Reference in New Issue