forked from sous-chefs/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
54 lines (44 loc) · 905 Bytes
/
.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
Lint/RescueException:
Exclude:
- 'Rakefile'
- 'libraries/helpers.rb'
Style/AccessorMethodName:
Exclude:
- 'Rakefile'
- 'libraries/helpers.rb'
Style/RescueModifier:
Exclude:
- 'Rakefile'
- 'libraries/helpers.rb'
Style/GuardClause:
Exclude:
- 'Rakefile'
- 'libraries/helpers.rb'
# Longer classes are okay.
Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 150
Metrics/BlockLength:
Max: 150
# Not on VT100s anymore.
Metrics/LineLength:
Max: 180
# We're not against complexity.
Metrics/AbcSize:
Max: 55
Metrics/CyclomaticComplexity:
Max: 20
Metrics/PerceivedComplexity:
Max: 20
# Mixlib::ShellOut is nice to have as an older hash syntax
Style/HashSyntax:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
Enabled: false