62 lines
1013 B
YAML
62 lines
1013 B
YAML
|
require:
|
||
|
- rubocop-performance
|
||
|
- rubocop-rake
|
||
|
|
||
|
AllCops:
|
||
|
TargetRubyVersion: 3.0
|
||
|
DisplayCopNames: true
|
||
|
NewCops: enable
|
||
|
|
||
|
Layout/AccessModifierIndentation:
|
||
|
EnforcedStyle: outdent
|
||
|
|
||
|
Layout/LineLength:
|
||
|
Max: 80
|
||
|
|
||
|
Lint/AmbiguousOperatorPrecedence:
|
||
|
Enabled: false
|
||
|
|
||
|
Lint/ReturnInVoidContext:
|
||
|
Enabled: false
|
||
|
|
||
|
Metrics/BlockLength:
|
||
|
Exclude:
|
||
|
- '*.gemspec'
|
||
|
- 'Rakefile'
|
||
|
- 'spec/**/*_spec.rb'
|
||
|
|
||
|
Metrics/MethodLength:
|
||
|
CountAsOne: ['array', 'hash', 'heredoc']
|
||
|
|
||
|
Metrics/ParameterLists:
|
||
|
Exclude:
|
||
|
- 'lib/diversipub/main.rb'
|
||
|
|
||
|
Style/AndOr:
|
||
|
EnforcedStyle: conditionals
|
||
|
|
||
|
Style/Documentation:
|
||
|
Exclude:
|
||
|
- 'Rakefile'
|
||
|
|
||
|
Style/DoubleNegation:
|
||
|
Enabled: false
|
||
|
|
||
|
Style/HashAsLastArrayItem:
|
||
|
Enabled: false
|
||
|
|
||
|
Style/PerlBackrefs:
|
||
|
Enabled: false
|
||
|
|
||
|
Style/TrailingCommaInArguments:
|
||
|
EnforcedStyleForMultiline: comma
|
||
|
|
||
|
Style/TrailingCommaInArrayLiteral:
|
||
|
EnforcedStyleForMultiline: comma
|
||
|
|
||
|
Style/TrailingCommaInHashLiteral:
|
||
|
EnforcedStyleForMultiline: comma
|
||
|
|
||
|
Style/VariableInterpolation:
|
||
|
Enabled: false
|