2022-01-18 05:20:37 -05:00
|
|
|
require:
|
|
|
|
- rubocop-performance
|
|
|
|
- rubocop-rake
|
|
|
|
- rubocop-rspec
|
|
|
|
|
|
|
|
AllCops:
|
|
|
|
TargetRubyVersion: 3.0
|
|
|
|
DisplayCopNames: true
|
|
|
|
NewCops: enable
|
|
|
|
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
|
|
|
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 80
|
2022-01-21 20:13:38 -05:00
|
|
|
Exclude:
|
|
|
|
- 'spec/lib/kernaux/sprintf_spec.rb'
|
2022-01-18 05:20:37 -05:00
|
|
|
|
|
|
|
Lint/AmbiguousOperatorPrecedence:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Lint/ReturnInVoidContext:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
|
|
|
- '*.gemspec'
|
|
|
|
- 'Rakefile'
|
|
|
|
- 'spec/**/*_spec.rb'
|
|
|
|
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Prefixes:
|
|
|
|
- 'and'
|
|
|
|
- 'for'
|
2022-01-21 20:13:38 -05:00
|
|
|
- 'using'
|
2022-01-18 05:20:37 -05:00
|
|
|
- 'when'
|
|
|
|
- 'with'
|
|
|
|
- 'without'
|
|
|
|
|
|
|
|
RSpec/FilePath:
|
|
|
|
CustomTransform:
|
|
|
|
KernAux: kernaux
|
|
|
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
CountAsOne: ['array', 'hash', 'heredoc']
|
|
|
|
|
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
2022-01-18 06:45:40 -05:00
|
|
|
Style/Documentation:
|
|
|
|
Exclude:
|
|
|
|
- 'Rakefile'
|
|
|
|
|
2022-01-18 05:20:37 -05:00
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-01-20 18:06:56 -05:00
|
|
|
Style/GlobalVars:
|
|
|
|
Exclude:
|
|
|
|
- 'ext/*/extconf.rb'
|
|
|
|
|
2022-01-18 05:20:37 -05:00
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/VariableInterpolation:
|
|
|
|
Enabled: false
|