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
Duncan Stuart e982fc83a9 Stop building against ruby 2.3
It went end-of-life in March 2019:

https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/

Build against latest versions of other rubies
2019-12-09 09:49:17 +01:00

67 lines
1 KiB
YAML

AllCops:
TargetRubyVersion: 2.4
Exclude:
- "lib/generators/**/templates/**/*"
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
Layout/AlignParameters:
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
Documentation:
Enabled: false # TODO: Enable again once we have more docs