1
0
Fork 0
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:
Duncan Stuart 2019-08-12 14:41:12 +02:00
parent e4ed3ecba8
commit 26a6d5504d

View file

@ -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