-
Notifications
You must be signed in to change notification settings - Fork 16
/
.rubocop.yml
72 lines (49 loc) · 1.19 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
71
72
# See default at https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# Common configuration.
AllCops:
Exclude:
- 'examples/cookbooks/**/*'
# Modified Cops:
Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 50
Metrics/LineLength: # TODO: Lower to 150
Max: 210
Style/IndentationWidth:
Width: 2
Style/VariableName:
EnforcedStyle: snake_case
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/EmptyLinesAroundBlockBody:
EnforcedStyle: no_empty_lines
Exclude:
- 'spec/**/*'
Style/GlobalVars:
AllowedVariables: [
$server_created # For Spec testing: (required to allow 2 different responses when searching for a server profile)
]
# Disabled Cops:
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Style/AccessorMethodName:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/EmptyLines:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/GuardClause: # TODO: Re-enable at some point
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Lint/RescueException:
Enabled: false
Style/RescueModifier:
Enabled: false
Metrics/ModuleLength:
Enabled: false