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:
|
Metrics/PerceivedComplexity:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Style/StructInheritance:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Layout/AlignParameters:
|
Layout/AlignParameters:
|
||||||
EnforcedStyle: with_fixed_indentation
|
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:
|
Layout/CaseIndentation:
|
||||||
EnforcedStyle: case
|
EnforcedStyle: case
|
||||||
SupportedStyles:
|
SupportedStyles:
|
||||||
|
@ -61,16 +40,37 @@ Layout/CaseIndentation:
|
||||||
- end
|
- end
|
||||||
IndentOneStep: true
|
IndentOneStep: true
|
||||||
|
|
||||||
Style/PercentLiteralDelimiters:
|
|
||||||
PreferredDelimiters:
|
|
||||||
'%w': "[]"
|
|
||||||
'%W': "[]"
|
|
||||||
|
|
||||||
Layout/AccessModifierIndentation:
|
Layout/AccessModifierIndentation:
|
||||||
EnforcedStyle: outdent
|
EnforcedStyle: outdent
|
||||||
|
|
||||||
Layout/EndAlignment:
|
Layout/EndAlignment:
|
||||||
EnforcedStyleAlignWith: variable
|
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:
|
Style/DoubleNegation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
Enabled: false # TODO: Enable again once we have more docs
|
||||||
|
|
Loading…
Reference in a new issue