-
Notifications
You must be signed in to change notification settings - Fork 21
/
.rubocop.yml
48 lines (36 loc) · 1.13 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
inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
# We prefer double quotes here and it we're making liberal use of multi-line
# strings so it makes sense to enforce those to be consistent too
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
# This one I disagree with. Putting seperators in large numbers makes sense
# in some circumstances but in others (an example id in a database table)
# it's just nonsensical. Also, I think this one might also be a bit US centric.
Style/NumericLiterals:
Enabled: false
# TODO: Don't have the patience to fix this one just yet
Style/ClassVars:
Exclude:
- 'lib/configuration.rb'
- 'lib/period.rb'
# We're use some methods with a large number of parameters. At least make
# it bearable by using keyword arguments
Metrics/ParameterLists:
CountKeywordArgs: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false