forked from restforce/restforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
75 lines (57 loc) · 1.48 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
# For all options see https://github.com/bbatsov/rubocop/tree/master/config
inherit_from: .rubocop_todo.yml
AllCops:
DisplayCopNames: true
Include:
- Rakefile
Exclude:
- .*/**/*
- vendor/**/*
TargetRubyVersion: 2.3
# 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
Layout/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
Naming/MethodName:
Enabled: false
Metrics/BlockLength:
Exclude:
- spec/**/*
- restforce.gemspec
Naming/FileName:
Exclude:
- Gemfile
- Guardfile
Lint/UriEscapeUnescape:
Enabled: false