varvet--pundit/.rubocop.yml

73 lines
1.1 KiB
YAML

AllCops:
TargetRubyVersion: 2.6
Exclude:
- "lib/generators/**/templates/**/*"
SuggestExtensions: false
NewCops: disable
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
Metrics/MethodLength:
Max: 40
Metrics/ModuleLength:
Max: 200
Exclude:
- "**/*_spec.rb"
Layout/LineLength:
Max: 120
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/CaseIndentation:
EnforcedStyle: case
SupportedStyles:
- case
- end
IndentOneStep: true
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
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
Style/Documentation:
Enabled: false # TODO: Enable again once we have more docs