2017-07-05 16:23:11 +02:00
|
|
|
AllCops:
|
|
|
|
Include:
|
|
|
|
- 'lib/**/*'
|
|
|
|
Exclude:
|
|
|
|
- 'vendor/**/*'
|
|
|
|
- 'benchmarks/*'
|
|
|
|
- 'profile/*'
|
|
|
|
- 'lib/yaml/*'
|
2017-10-23 13:24:09 +02:00
|
|
|
- 'lib/**/*.sh'
|
2017-07-05 16:23:11 +02:00
|
|
|
DisplayCopNames: true
|
|
|
|
TargetRubyVersion: 2.1
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
Layout/AlignParameters:
|
|
|
|
EnforcedStyle: with_fixed_indentation
|
|
|
|
|
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: empty
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
|
|
|
|
Metrics/LineLength:
|
|
|
|
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
|
|
|
|
|
|
|
|
Style/SingleLineBlockParams:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/PerlBackrefs:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/SpaceAfterComma:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/SpaceAroundOperators:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/EmptyCaseCondition:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/MultilineBlockChain:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# 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
|