mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
19b2613e7a
This seems like a reasonable thing to fix: in my opinion the fewer exceptions to the default config, the better
94 lines
1.5 KiB
YAML
94 lines
1.5 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
|
|
|
|
Style/StructInheritance:
|
|
Enabled: false
|
|
|
|
Layout/AlignParameters:
|
|
EnforcedStyle: with_fixed_indentation
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Layout/ClosingParenthesisIndentation:
|
|
Enabled: false
|
|
|
|
Style/OneLineConditional:
|
|
Enabled: false
|
|
|
|
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:
|
|
- case
|
|
- end
|
|
IndentOneStep: true
|
|
|
|
Style/PercentLiteralDelimiters:
|
|
PreferredDelimiters:
|
|
'%w': "[]"
|
|
'%W': "[]"
|
|
|
|
Layout/AccessModifierIndentation:
|
|
EnforcedStyle: outdent
|
|
|
|
Style/SignalException:
|
|
Enabled: false
|
|
|
|
Layout/IndentationWidth:
|
|
Enabled: false
|
|
|
|
Layout/EndAlignment:
|
|
EnforcedStyleAlignWith: variable
|
|
|
|
Layout/DefEndAlignment:
|
|
Enabled: false
|
|
|
|
Lint/HandleExceptions:
|
|
Enabled: false
|
|
|
|
Style/DoubleNegation:
|
|
Enabled: false
|