forked from LandRegistry/common-dev-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
39 lines (29 loc) · 763 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
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'apps/**/*'
Metrics/LineLength:
Max: 120
# The default is 10, which is low...
Metrics/MethodLength:
Enabled: false
# The default is 25, which is low...
Metrics/BlockLength:
Enabled: false
# There are loads of calls to colorize which are fairly clear, but drive up AbcSize
# Set to 21 for update_apps (ensures it won't grow)
Metrics/AbcSize:
Max: 21
Metrics/ParameterLists:
Max: 7
Style/FrozenStringLiteralComment:
Enabled: false
# casecmp is harder to read ('a'.casecmp('A').zero?)
Performance/Casecmp:
Enabled: false
# Generating false positives
Style/SafeNavigation:
Enabled: false
# Generating false positives in elasticsearch shell scripts
Style/FormatStringToken:
Enabled: false