-
Notifications
You must be signed in to change notification settings - Fork 86
/
.rubocop.yml
87 lines (72 loc) · 1.51 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AllCops:
TargetRubyVersion: 2.0
DisplayCopNames: true
LineLength:
Max: 130
Severity: warning
Style/OneLineConditional:
Enabled: true
Style/StringLiterals:
# Being consistent with Puppet
EnforcedStyle: single_quotes
# Since we're using Ruby >= 2.0 we can use the new hash syntax
Style/HashSyntax:
Enabled: true
# We are setting absurdly high limits but should work to tighten these up.
Metrics/AbcSize:
Max: 100
Severity: warning
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Max: 500
Severity: warning
Metrics/CyclomaticComplexity:
Max: 50
Severity: warning
Metrics/MethodLength:
Max: 100
Severity: warning
Metrics/PerceivedComplexity:
Max: 50
Severity: warning
# Indentation
CaseIndentation:
IndentOneStep: false
Lint/EndAlignment:
EnforcedStyleAlignWith: variable
# To let us use a '-' in the gem name
Style/FileName:
Enabled: false
# Sometimes it's cleaner without this
Style/Documentation:
Enabled: false
# To fix later
Style/FormatStringToken:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/VariableNumber:
Enabled: false
Security/YAMLLoad:
Enabled: false
Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/UnifiedInteger:
Enabled: false
Style/GuardClause:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/YodaCondition:
Enabled: false
Layout/HeredocIndentation:
Enabled: false
Layout/ExtraSpacing:
Enabled: false
Performance/Caller:
Enabled: false
Style/WordArray:
Enabled: false