-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.rubocop.yml
54 lines (48 loc) · 1.08 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
require:
- rubocop-rspec
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 2.7
Exclude:
# Exclude autogenerated files.
- "lib/coinbase/client.rb"
- "lib/coinbase/client/**/*"
Gemspec/DevelopmentDependencies:
Enabled: false
# Tests can be long.
Metrics/BlockLength:
Enabled: true
Exclude:
- "spec/**/*"
- "*.gemspec"
# Classes can be long.
Metrics/ClassLength:
Max: 300
# Cyclomatic complexity is not a good measure of code quality.
Metrics/CyclomaticComplexity:
Max: 50
# Perceived complexity is not a good measure of code quality.
Metrics/PerceivedComplexity:
Max: 25
Metrics/MethodLength:
Max: 50
# Methods can have many parameters.
Metrics/ParameterLists:
Enabled: false
# Assignment branch conditions seem reasonable.
Metrics/AbcSize:
Max: 50
RSpec/ExampleLength:
Max: 10
RSpec/MultipleMemoizedHelpers:
Max: 35
RSpec/NestedGroups:
Max: 4
RSpec/SpecFilePathFormat:
Exclude:
- "spec/unit/coinbase/address/*"
- "spec/unit/coinbase/errors_spec.rb"
RSpec/SpecFilePathSuffix:
Exclude:
- "spec/e2e/end_to_end.rb"