-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.rubocop.yml
More file actions
50 lines (38 loc) · 784 Bytes
/
.rubocop.yml
File metadata and controls
50 lines (38 loc) · 784 Bytes
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
AllCops:
NewCops: enable
TargetRubyVersion: 2.6
SuggestExtensions: false
Exclude:
- 'vendor/**/*'
# Enforce 2-space indentation
Layout/IndentationWidth:
Width: 2
Layout/LineLength:
Max: 150
# Be lenient in specs and gemspec
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- '*.gemspec'
# SDK methods can have more parameters
Metrics/ParameterLists:
Max: 15
# SDK classes/modules can be longer
Metrics/ClassLength:
Max: 250
Metrics/ModuleLength:
Max: 150
Metrics/MethodLength:
Max: 25
Metrics/AbcSize:
Max: 30
# Skip documentation requirement for SDK
Style/Documentation:
Enabled: false
# Gemspec specific
Gemspec/DevelopmentDependencies:
Enabled: false
Gemspec/RequireMFA:
Enabled: false
Gemspec/OrderedDependencies:
Enabled: false