forked from KennaSecurity/toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
188 lines (160 loc) · 5.52 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-01-09 23:31:25 UTC using RuboCop version 1.42.0.
# 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: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterGuardClause:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 1
Lint/MissingSuper:
Exclude:
- 'tasks/base.rb'
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 179
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 581
# Offense count: 46
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 233
# Offense count: 14
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 5
# Offense count: 55
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 415
# Offense count: 76
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 107
# Offense count: 316
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/MethodLength:
Max: 323
# Offense count: 8
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 438
# Offense count: 28
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
Max: 22
# Offense count: 65
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/PerceivedComplexity:
Max: 119
# Offense count: 66
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'tasks/connectors/snyk/snyk.rb'
- 'tasks/connectors/snyk_findings/snyk_findings.rb'
- 'tasks/utilities/csv2kdi/csv2kdi.rb'
# Offense count: 2
Style/ClassVars:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 132
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# Offense count: 169
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Enabled: false
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/Not:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 9
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/api/client.rb'
- 'lib/csv_helpers.rb'
- 'lib/helpers.rb'
- 'lib/http.rb'
- 'lib/kdi/kdi_helpers.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SingleArgumentDig:
Exclude:
- 'tasks/connectors/ms_defender_tvm/ms_defender_tvm.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
Exclude:
- 'tasks/base.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude:
- 'lib/kdi/kdi_helpers.rb'
- 'tasks/connectors/snyk/snyk.rb'
- 'tasks/connectors/snyk_findings/snyk_findings.rb'
# Offense count: 7968
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude:
- 'tasks/connectors/cobaltio/cobaltio.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
EnforcedStyle: percent
MinSize: 6
# Offense count: 20
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ZeroLengthPredicate:
Exclude:
- 'tasks/connectors/cobaltio/lib/cobaltio_helper.rb'
- 'tasks/connectors/nozomi/nozomi.rb'
- 'tasks/connectors/snyk/snyk.rb'
- 'tasks/connectors/snyk_findings/snyk_findings.rb'
- 'tasks/connectors/snyk_v2/snyk_v2_task.rb'
# Offense count: 419
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 834