forked from restforce/restforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
74 lines (56 loc) · 1.54 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
# For all options see https://github.com/bbatsov/rubocop/tree/master/config
inherit_from: .rubocop_todo.yml
AllCops:
DisplayCopNames: true
Exclude:
- .*/**/*
- vendor/**/*
NewCops: enable
TargetRubyVersion: 3.0
# Limit lines to 90 characters.
Layout/LineLength:
Max: 90
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
# Avoid methods longer than 30 lines of code
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 87
# Avoid single-line methods.
Style/SingleLineMethods:
AllowIfMethodIsEmpty: true
Style/StringLiterals:
Enabled: false
Style/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.
Style/NumericLiterals:
Enabled: false
# Wants you to use the same argument names for every reduce. This seems kinda
# naff compared to naming them semantically
Style/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