-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy path.rubocop.yml
More file actions
54 lines (42 loc) · 1022 Bytes
/
.rubocop.yml
File metadata and controls
54 lines (42 loc) · 1022 Bytes
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
AllCops:
NewCops: enable
Layout/ParameterAlignment:
Enabled: false
Style/Encoding:
Enabled: false
# Increase line length, we're not on VT220s anymore
Layout/LineLength:
Max: 200
URISchemes:
- http
- https
Style/StringLiterals:
Enabled: false
# disable opinionated doc requirements such as a top-level class comments
Style/Documentation:
Enabled: false
# Longer classes aren't _so_ bad
Metrics/ClassLength:
Max: 125
# Increase allowed lines in a method. Short methods are good, but 10 lines
# is a bit too low.
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 40
# Raise allowed CyclomaticComplexity & Perceived from 10.
Metrics/CyclomaticComplexity:
Max: 20
Metrics/PerceivedComplexity:
Max: 20
# Don't force a word array unless 5 elements
Style/WordArray:
MinSize: 5
# allow both hash syntaxes
Style/HashSyntax:
Enabled: false
# allow larger modules
Metrics/ModuleLength:
Max: 150
# conditionals are not _so_ bad
Metrics/AbcSize:
Max: 20