2020-12-22 14:17:49 +01:00
|
|
|
require:
|
|
|
|
- rubocop-performance
|
|
|
|
- rubocop-rake
|
2020-12-22 21:18:37 +01:00
|
|
|
- rubocop-rspec
|
2019-04-09 18:28:34 +02:00
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
AllCops:
|
|
|
|
Exclude:
|
|
|
|
- 'vendor/**/*'
|
|
|
|
- 'benchmarks/*'
|
|
|
|
- 'profile/*'
|
|
|
|
DisplayCopNames: true
|
2020-04-20 10:20:08 +02:00
|
|
|
NewCops: enable
|
2020-04-16 22:25:51 +02:00
|
|
|
TargetRubyVersion: 2.5
|
2017-07-05 16:23:11 +02:00
|
|
|
|
|
|
|
# Preferred codebase style ---------------------------------------------
|
2017-10-31 02:31:59 +01:00
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
Layout/ExtraSpacing:
|
|
|
|
AllowForAlignment: true
|
|
|
|
|
|
|
|
Style/FormatString:
|
|
|
|
EnforcedStyle: percent
|
|
|
|
|
|
|
|
Style/AndOr:
|
|
|
|
EnforcedStyle: conditionals
|
|
|
|
|
|
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
|
EnforcedStyle: no_space
|
|
|
|
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
|
|
EnforcedStyle: space
|
|
|
|
|
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
|
EnforcedStyle: no_space
|
|
|
|
|
2019-11-28 14:32:03 +01:00
|
|
|
Layout/ParameterAlignment:
|
2017-07-05 16:23:11 +02:00
|
|
|
EnforcedStyle: with_fixed_indentation
|
|
|
|
|
2020-04-16 22:20:13 +02:00
|
|
|
Lint/RaiseException:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Lint/StructNewOverride:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: empty
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
|
2020-01-20 21:36:21 +01:00
|
|
|
Layout/LineLength:
|
2017-07-05 16:23:11 +02:00
|
|
|
Max: 120
|
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Max: 200
|
|
|
|
|
|
|
|
Metrics/ClassLength:
|
2017-11-22 19:12:59 +01:00
|
|
|
Max: 350
|
2017-07-05 16:23:11 +02:00
|
|
|
|
|
|
|
Metrics/ParameterLists:
|
2017-08-16 04:09:02 +02:00
|
|
|
Max: 15
|
2017-07-05 16:23:11 +02:00
|
|
|
|
2017-10-20 20:57:17 +02:00
|
|
|
Naming/FileName:
|
|
|
|
Enabled: false
|
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
Style/ParallelAssignment:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/DoubleNegation:
|
|
|
|
Enabled: false
|
|
|
|
|
2020-04-16 22:20:13 +02:00
|
|
|
Style/HashEachMethods:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/HashTransformKeys:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Style/HashTransformValues:
|
|
|
|
Enabled: true
|
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
Style/SingleLineBlockParams:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/SpaceAfterComma:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/SpaceAroundOperators:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/EmptyCaseCondition:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/MultilineBlockChain:
|
|
|
|
Enabled: false
|
|
|
|
|
2019-04-09 18:25:06 +02:00
|
|
|
Style/StderrPuts:
|
|
|
|
Enabled: false
|
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
# Current preferred metrics --------------------------------------------
|
|
|
|
# Better values are encouraged, but not required.
|
|
|
|
Metrics/AbcSize:
|
2017-08-26 15:01:37 +02:00
|
|
|
Max: 30
|
2017-07-05 16:23:11 +02:00
|
|
|
|
|
|
|
Metrics/MethodLength:
|
2017-08-16 04:09:02 +02:00
|
|
|
Max: 20
|
2017-07-05 16:23:11 +02:00
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
2017-10-23 13:24:09 +02:00
|
|
|
Max: 8
|
2017-07-05 16:23:11 +02:00
|
|
|
|
2017-08-26 15:01:37 +02:00
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Max: 8
|
|
|
|
|
2017-07-05 16:23:11 +02:00
|
|
|
# TODO -----------------------------------------------------------------
|
|
|
|
|
|
|
|
Style/Documentation:
|
2017-07-10 15:04:45 +02:00
|
|
|
Enabled: false
|
2020-12-22 21:22:41 +01:00
|
|
|
|
|
|
|
RSpec/NamedSubject:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/SubjectStub:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
RSpec/ContextWording:
|
|
|
|
Enabled: false
|