forked from coinbase/coinbase-sdk-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
28 lines (28 loc) · 693 Bytes
/
.rubocop.yml
File metadata and controls
28 lines (28 loc) · 693 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
AllCops:
NewCops: disable
SuggestExtensions: false
TargetRubyVersion: 2.7
Exclude:
# Exclude autogenerated files.
- "lib/coinbase/client.rb"
- "lib/coinbase/client/**/*"
# Tests can be long.
Metrics/BlockLength:
Enabled: false
# Classes can be long.
Metrics/ClassLength:
Max: 1000
# 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