2022-02-09 14:41:00 -05:00
|
|
|
require:
|
|
|
|
- rubocop-performance
|
|
|
|
- rubocop-rake
|
|
|
|
|
|
|
|
AllCops:
|
2022-02-09 15:03:06 -05:00
|
|
|
# TODO: Explore which exact syntax version mruby is compatible with
|
|
|
|
TargetRubyVersion: 2.7
|
2022-02-09 14:41:00 -05:00
|
|
|
DisplayCopNames: true
|
|
|
|
NewCops: enable
|
|
|
|
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
|
|
|
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 80
|
|
|
|
|
|
|
|
Lint/AmbiguousOperatorPrecedence:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Lint/ReturnInVoidContext:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
|
|
|
- 'Rakefile'
|
|
|
|
- 'test/**/*.rb'
|
|
|
|
|
2022-05-24 10:31:21 -04:00
|
|
|
Security/YAMLLoad:
|
|
|
|
Exclude:
|
|
|
|
- 'test/**/*.rb'
|
|
|
|
|
2022-02-09 14:41:00 -05:00
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
|
|
|
Style/Documentation:
|
|
|
|
Exclude:
|
|
|
|
- 'Rakefile'
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-05-30 06:02:16 -04:00
|
|
|
Style/NumericPredicate:
|
|
|
|
# Numeric#negative? is not available in mruby
|
|
|
|
Enabled: false
|
|
|
|
|
2022-02-09 14:41:00 -05:00
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
|
|
|
|
Style/VariableInterpolation:
|
|
|
|
Enabled: false
|