varvet--pundit/.rubocop.yml

73 lines
1.1 KiB
YAML
Raw Normal View History

2016-01-14 14:15:30 +00:00
AllCops:
TargetRubyVersion: 2.6
2016-01-14 14:15:30 +00:00
Exclude:
- "lib/generators/**/templates/**/*"
2022-01-13 00:39:41 +00:00
SuggestExtensions: false
NewCops: disable
2016-01-14 14:15:30 +00:00
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
2022-01-13 00:39:41 +00:00
Layout/LineLength:
2016-01-14 14:15:30 +00:00
Max: 120
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Gemspec/RequiredRubyVersion:
Enabled: false
2022-01-13 00:39:41 +00:00
Layout/ParameterAlignment:
2016-01-14 14:15:30 +00:00
EnforcedStyle: with_fixed_indentation
Layout/CaseIndentation:
EnforcedStyle: case
2016-01-14 14:15:30 +00:00
SupportedStyles:
- case
- end
IndentOneStep: true
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
2016-01-14 14:15:30 +00:00
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%w': "[]"
'%W': "[]"
Style/StringLiterals:
EnforcedStyle: double_quotes
2016-01-14 14:15:30 +00:00
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/StructInheritance:
Enabled: false
Style/AndOr:
Enabled: false
Style/Not:
Enabled: false
2016-01-14 14:15:30 +00:00
Style/DoubleNegation:
Enabled: false
2022-01-13 00:39:41 +00:00
Style/Documentation:
Enabled: false # TODO: Enable again once we have more docs