1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00
varvet--pundit/.rubocop.yml

95 lines
1.5 KiB
YAML
Raw Normal View History

2016-01-14 09:15:30 -05:00
AllCops:
DisplayCopNames: true
2018-07-21 15:21:32 -04:00
TargetRubyVersion: 2.2
2016-01-14 09:15:30 -05:00
Exclude:
- "gemfiles/**/*"
- "vendor/**/*"
- "lib/generators/**/*"
Metrics/BlockLength:
Exclude:
- "**/*_spec.rb"
2016-01-14 09:15:30 -05:00
Metrics/MethodLength:
Max: 40
Metrics/ModuleLength:
Max: 200
Exclude:
- "**/*_spec.rb"
2016-01-14 09:15:30 -05: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 09:15:30 -05:00
EnforcedStyle: with_fixed_indentation
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Layout/ClosingParenthesisIndentation:
2016-01-14 09:15:30 -05:00
Enabled: false
Style/OneLineConditional:
Enabled: false
Style/AndOr:
Enabled: false
Style/Not:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
2016-01-14 09:15:30 -05:00
Documentation:
Enabled: false # TODO: Enable again once we have more docs
Layout/CaseIndentation:
EnforcedStyle: case
2016-01-14 09:15:30 -05:00
SupportedStyles:
- case
- end
IndentOneStep: true
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%w': "[]"
'%W': "[]"
Layout/AccessModifierIndentation:
2016-01-14 09:15:30 -05:00
EnforcedStyle: outdent
Style/SignalException:
Enabled: false
Layout/IndentationWidth:
2016-01-14 09:15:30 -05:00
Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
2016-01-14 09:15:30 -05:00
Layout/DefEndAlignment:
2016-01-14 09:15:30 -05:00
Enabled: false
Lint/HandleExceptions:
Enabled: false
Style/DoubleNegation:
Enabled: false