-
Notifications
You must be signed in to change notification settings - Fork 38
/
.rubocop.yml
70 lines (58 loc) · 1.21 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.5
Naming/PredicateName:
AllowedMethods:
- is_enabled?
Metrics/ClassLength:
Max: 120
Metrics/LineLength:
Max: 140
Metrics/MethodLength:
Max: 20
Metrics/BlockLength:
Max: 100
Exclude:
- 'spec/unleash/client_spec.rb'
- 'spec/unleash/feature_toggle_spec.rb'
Metrics/AbcSize:
Max: 25
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8
Style/Documentation:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
Style/WordArray:
EnforcedStyle: brackets
Style/PreferredHashMethods:
EnforcedStyle: verbose
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Style/GuardClause:
MinBodyLength: 8
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/IfInsideElse:
Exclude:
- 'bin/unleash-client'
Style/Next:
Exclude:
- 'lib/unleash/scheduled_executor.rb'
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/SpaceBeforeBlockBraces:
EnforcedStyle: no_space
Exclude:
- 'unleash-client.gemspec'
- 'spec/**/*.rb'