Move cask-specific rubocop configuration to Casks/.rubocop.yml

This commit is contained in:
Josh Hagins
2016-01-16 18:19:30 -05:00
parent 663fd289e4
commit a67e080cc3
2 changed files with 50 additions and 56 deletions
-56
View File
@@ -1,5 +1,3 @@
require: rubocop-cask
AllCops:
Exclude:
- '**/Gemfile'
@@ -17,57 +15,3 @@ AllCops:
- 'test/Casks/**/*'
- 'test/plist/**/*'
- 'test/support/shared_examples/**/*'
Metrics/LineLength:
Exclude:
- '**/Casks/**/*'
Performance/StringReplacement:
Exclude:
- '**/Casks/**/*'
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/Documentation:
Exclude:
- '**/Casks/**/*'
Style/EmptyElse:
Exclude:
- '**/Casks/**/*'
Style/FileName:
Exclude:
- '**/Casks/**/*'
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IndentArray:
EnforcedStyle: align_brackets
Style/IndentHash:
EnforcedStyle: align_braces
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': '{}'
'%q': '{}'
'%Q': '{}'
'%r': '{}'
'%s': '()'
'%w': '[]'
'%W': '[]'
'%x': '()'
Style/RegexpLiteral:
EnforcedStyle: percent_r
Style/TrailingComma:
EnforcedStyleForMultiline: comma
+50
View File
@@ -0,0 +1,50 @@
require: rubocop-cask
Metrics/LineLength:
Enabled: false
Performance/StringReplacement:
Enabled: false
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/Documentation:
Enabled: false
Style/EmptyElse:
Enabled: false
Style/FileName:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IndentArray:
EnforcedStyle: align_brackets
Style/IndentHash:
EnforcedStyle: align_braces
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': '{}'
'%q': '{}'
'%Q': '{}'
'%r': '{}'
'%s': '()'
'%w': '[]'
'%W': '[]'
'%x': '()'
Style/RegexpLiteral:
EnforcedStyle: percent_r
Style/TrailingComma:
EnforcedStyleForMultiline: comma