forked from restforce/restforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
60 lines (45 loc) · 1.27 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
# For all options see https://github.com/bbatsov/rubocop/tree/master/config
inherit_from: .rubocop_todo.yml
AllCops:
RunRailsCops: false
Include:
- Rakefile
Exclude:
- .*/**/*
# Limit lines to 80 characters.
LineLength:
Max: 90
ClassLength:
Enabled: false
ModuleLength:
Enabled: false
# Avoid methods longer than 30 lines of code
MethodLength:
CountComments: false # count full line comments?
Max: 87
# Avoid single-line methods.
SingleLineMethods:
AllowIfMethodIsEmpty: true
StringLiterals:
Enabled: false
GlobalVars:
Enabled: false # We use them Redis + StatsD (though maybe we shouldn't?)
# Wants underscores in all large numbers. Pain in the ass for things like
# unix timestamps.
NumericLiterals:
Enabled: false
# Wants you to use the same argument names for every reduce. This seems kinda
# naff compared to naming them semantically
SingleLineBlockParams:
Enabled: false
Style/SignalException:
EnforcedStyle: 'only_raise'
# Use trailing rather than leading dots on multi-line call chains
Style/DotPosition:
EnforcedStyle: trailing
# Allow non-ASCII characters (e.g. £) in comments
Style/AsciiComments:
Enabled: false
# Allow method names beginning with capital letters to match Salesforce conventions
Style/MethodName:
Enabled: false