-
Notifications
You must be signed in to change notification settings - Fork 375
/
.rubocop.yml
52 lines (38 loc) · 1.17 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
AllCops:
TargetRubyVersion: 2.1
# 80 characters is a nice goal, but not worth currently changing in existing
# code for the sake of changing it to conform to a length set in 1928 (IBM).
Metrics/LineLength:
Max: 124
# These exceptions are good goals to attain, and probably will over time,
# so periodic disabling and re-running to inspect values is suggested.
Metrics/AbcSize:
Max: 50
# TODO: As refactors continue, this should drop. However, the goal of
# 10 lines in a method may be a little lofty.
Metrics/MethodLength:
Max: 36
# TODO: this is not compliant with the Ruby community style guide. We
# should enable again this rule but it will change the public API because
# we're using set_ methods. We should work on that because also Rails
# honors this rule.
Style/AccessorMethodName:
Enabled: false
Style/MethodCallWithoutArgsParentheses:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/NumericLiterals:
Enabled: false
Metrics/ClassLength:
Max: 140
Metrics/BlockLength:
Max: 42
Metrics/ParameterLists:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 15
Metrics/PerceivedComplexity:
Max: 15
Lint/UnusedMethodArgument:
Enabled: false