colorls/.rubocop.yml

135 lines
2.1 KiB
YAML
Raw Normal View History

2020-12-22 14:17:49 +01:00
require:
- rubocop-performance
- rubocop-rake
- 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
NewCops: enable
TargetRubyVersion: 2.6
2017-07-05 16:23:11 +02:00
# Preferred codebase style ---------------------------------------------
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/ParameterAlignment:
2017-07-05 16:23:11 +02:00
EnforcedStyle: with_fixed_indentation
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
2017-07-05 16:23:11 +02:00
Style/EmptyElse:
EnforcedStyle: empty
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
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:
2022-03-20 00:16:51 +01:00
Max: 16
2017-07-05 16:23:11 +02:00
Naming/FileName:
Enabled: false
2017-07-05 16:23:11 +02:00
Style/ParallelAssignment:
Enabled: false
Style/DoubleNegation:
Enabled: false
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
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:
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
Gemspec/RequireMFA:
Enabled: false
2017-07-05 16:23:11 +02:00
# TODO -----------------------------------------------------------------
Style/Documentation:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/SubjectStub:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/ContextWording:
Enabled: false