mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Rubocop: Group cops by type
This decreases the risk of adding a rule twice, and makes things easier to find
This commit is contained in:
parent
e4ed3ecba8
commit
26a6d5504d
1 changed files with 26 additions and 26 deletions
52
.rubocop.yml
52
.rubocop.yml
|
@ -30,30 +30,9 @@ Metrics/CyclomaticComplexity:
|
|||
Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
|
||||
Style/StructInheritance:
|
||||
Enabled: false
|
||||
|
||||
Layout/AlignParameters:
|
||||
EnforcedStyle: with_fixed_indentation
|
||||
|
||||
Style/StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/StringLiteralsInInterpolation:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/AndOr:
|
||||
Enabled: false
|
||||
|
||||
Style/Not:
|
||||
Enabled: false
|
||||
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: true
|
||||
|
||||
Documentation:
|
||||
Enabled: false # TODO: Enable again once we have more docs
|
||||
|
||||
Layout/CaseIndentation:
|
||||
EnforcedStyle: case
|
||||
SupportedStyles:
|
||||
|
@ -61,16 +40,37 @@ Layout/CaseIndentation:
|
|||
- end
|
||||
IndentOneStep: true
|
||||
|
||||
Style/PercentLiteralDelimiters:
|
||||
PreferredDelimiters:
|
||||
'%w': "[]"
|
||||
'%W': "[]"
|
||||
|
||||
Layout/AccessModifierIndentation:
|
||||
EnforcedStyle: outdent
|
||||
|
||||
Layout/EndAlignment:
|
||||
EnforcedStyleAlignWith: variable
|
||||
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: true
|
||||
|
||||
Style/PercentLiteralDelimiters:
|
||||
PreferredDelimiters:
|
||||
'%w': "[]"
|
||||
'%W': "[]"
|
||||
|
||||
Style/StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/StringLiteralsInInterpolation:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/StructInheritance:
|
||||
Enabled: false
|
||||
|
||||
Style/AndOr:
|
||||
Enabled: false
|
||||
|
||||
Style/Not:
|
||||
Enabled: false
|
||||
|
||||
Style/DoubleNegation:
|
||||
Enabled: false
|
||||
|
||||
Documentation:
|
||||
Enabled: false # TODO: Enable again once we have more docs
|
||||
|
|
Loading…
Reference in a new issue