-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
45 lines (34 loc) · 843 Bytes
/
.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
AllCops:
TargetRubyVersion: 2.7
SuggestExtensions: false
NewCops: enable
Exclude:
- 'spec/**/*.rb'
- 'vendor/**/*'
Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
# We're a FUSE filesystem we're going to see the perl syntax sometimes
Style/SpecialGlobalVars:
Enabled: false
Style/Documentation:
Exclude: ['Libfuse']
# If we can see it on half a screen, it is ok.
Metrics/MethodLength:
Description: 'Avoid methods longer than 20 lines of code.'
Max: 20
Metrics/ClassLength:
Max: 300
Metrics/ModuleLength:
Max: 300
Metrics/ParameterLists:
Max: 7
# Back it off the complexity metrics a bit
Metrics/AbcSize:
Max: 25
Metrics/CyclomaticComplexity:
Max: 12
Metrics/PerceivedComplexity:
Max: 12
# We use @!method in empty classes to document ffi functions
Lint/EmptyClass:
AllowComments: true