varvet--pundit/.rubocop.yml

77 lines
1.2 KiB
YAML
Raw Normal View History

2016-01-14 14:15:30 +00:00
AllCops:
DisplayCopNames: true
2018-07-21 19:21:32 +00:00
TargetRubyVersion: 2.2
2016-01-14 14:15:30 +00:00
Exclude:
- "gemfiles/**/*"
- "vendor/**/*"
- "lib/generators/**/*"
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
2016-01-14 14:15:30 +00:00
Metrics/MethodLength:
Max: 40
Metrics/ModuleLength:
Max: 200
Exclude:
- "**/*_spec.rb"
2016-01-14 14:15:30 +00:00
Metrics/LineLength:
Max: 120
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Style/StructInheritance:
Enabled: false
Layout/AlignParameters:
2016-01-14 14:15:30 +00:00
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
2016-01-14 14:15:30 +00:00
Documentation:
Enabled: false # TODO: Enable again once we have more docs
Layout/CaseIndentation:
EnforcedStyle: case
2016-01-14 14:15:30 +00:00
SupportedStyles:
- case
- end
IndentOneStep: true
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%w': "[]"
'%W': "[]"
Layout/AccessModifierIndentation:
2016-01-14 14:15:30 +00:00
EnforcedStyle: outdent
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
2016-01-14 14:15:30 +00:00
Style/DoubleNegation:
Enabled: false