mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
26a6d5504d
This decreases the risk of adding a rule twice, and makes things easier to find
76 lines
1.2 KiB
YAML
76 lines
1.2 KiB
YAML
AllCops:
|
|
DisplayCopNames: true
|
|
TargetRubyVersion: 2.2
|
|
Exclude:
|
|
- "gemfiles/**/*"
|
|
- "vendor/**/*"
|
|
- "lib/generators/**/*"
|
|
|
|
Metrics/BlockLength:
|
|
Exclude:
|
|
- "**/*_spec.rb"
|
|
|
|
Metrics/MethodLength:
|
|
Max: 40
|
|
|
|
Metrics/ModuleLength:
|
|
Max: 200
|
|
Exclude:
|
|
- "**/*_spec.rb"
|
|
|
|
Metrics/LineLength:
|
|
Max: 120
|
|
|
|
Metrics/AbcSize:
|
|
Enabled: false
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
Enabled: false
|
|
|
|
Metrics/PerceivedComplexity:
|
|
Enabled: false
|
|
|
|
Layout/AlignParameters:
|
|
EnforcedStyle: with_fixed_indentation
|
|
|
|
Layout/CaseIndentation:
|
|
EnforcedStyle: case
|
|
SupportedStyles:
|
|
- case
|
|
- end
|
|
IndentOneStep: true
|
|
|
|
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
|