-
Notifications
You must be signed in to change notification settings - Fork 12
/
.rubocop_todo.yml
124 lines (106 loc) · 3.1 KB
/
.rubocop_todo.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-06-10 11:00:57 UTC using RuboCop version 1.16.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 85
Metrics/AbcSize:
Max: 180
# Offense count: 92
Metrics/BlockLength:
Max: 57
# Offense count: 11
Metrics/ClassLength:
Max: 629
# Offense count: 40
Metrics/CyclomaticComplexity:
Max: 50
# Offense count: 95
Metrics/MethodLength:
Max: 134
# Offense count: 6
Metrics/ParameterLists:
Max: 9
MaxOptionalParameters: 4
# Offense count: 34
Metrics/PerceivedComplexity:
Max: 56
# Offense count: 8
Naming/AccessorMethodName:
Exclude:
- 'app/models/lightning_transaction.rb'
- 'app/models/penalty_transaction.rb'
- 'app/models/stale_candidate.rb'
- 'app/models/sweep_transaction.rb'
- 'app/services/bitcoin_client_python.rb'
- 'app/models/concerns/rpc_concern.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/block.rb'
- 'app/models/lightning_transaction.rb'
- 'app/models/node.rb'
# Offense count: 9
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Exclude:
- 'app/models/block.rb'
- 'app/models/chaintip.rb'
- 'app/models/lightning_transaction.rb'
- 'app/models/node.rb'
- 'app/models/version_bit.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/chaintip.rb'
# Offense count: 18
# Cop supports --auto-correct.
Rails/WhereEquals:
Exclude:
- 'app/controllers/api/v1/inflated_blocks_controller.rb'
- 'app/controllers/api/v1/invalid_blocks_controller.rb'
- 'app/controllers/feeds_controller.rb'
- 'app/models/block.rb'
- 'app/models/stale_candidate.rb'
# Offense count: 186
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# Offense count: 26
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 4
Style/MultilineBlockChain:
Exclude:
- 'app/models/block.rb'
- 'app/models/stale_candidate.rb'
# Offense count: 13
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'app/models/concerns/rpc_concern.rb'
- 'app/models/node.rb'
- 'app/services/bitcoin_client.rb'
- 'app/services/bitcoin_client_mock.rb'
- 'app/services/bitcoin_client_python.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'app/services/bitcoin_client_mock.rb'
# Offense count: 129
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 1088