-
Notifications
You must be signed in to change notification settings - Fork 52
/
.rubocop.yml
91 lines (73 loc) · 1.49 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
88
89
90
91
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'Guardfile'
- '*.gemspec'
- '**/*.rake'
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
- '.cache/**/*'
LineLength:
Max: 100
MethodLength:
Max: 17
ParameterLists:
Max: 6
CyclomaticComplexity:
Max: 8
PerceivedComplexity:
Max: 10
AbcSize:
Max: 44
WordArray:
Enabled: false
RegexpLiteral:
Exclude:
- 'Guardfile'
- '*.gemspec'
EmptyElse:
Enabled: false
AlignHash:
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
# 'a' => 2
# 'bb' => 3
# separator - alignment of hash rockets, keys are right aligned
# 'a' => 2
# 'bb' => 3
# table - left alignment of keys, hash rockets, and values
# 'a' => 2
# 'bb' => 3
EnforcedHashRocketStyle: table
# Alignment of entries using colon as separator. Valid values are:
#
# key - left alignment of keys
# a: 0
# bb: 1
# separator - alignment of colons, keys are right aligned
# a: 0
# bb: 1
# table - left alignment of keys and values
# a: 0
# bb: 1
EnforcedColonStyle: separator
# TODO
Documentation:
Enabled: false
# TODO: This should not register offences for non keyword hashes.
BracesAroundHashParameters:
Enabled: false
# TODO: Shorten to 100.
ClassLength:
Max: 137
# This cop should consider symmetries.
GuardClause:
Enabled: false
ModuleLength:
Enabled: false
Security/JSONLoad:
Enabled: false
Security/MarshalLoad:
Enabled: false