-
Notifications
You must be signed in to change notification settings - Fork 106
/
.rubocop_todo.yml
229 lines (199 loc) · 6.77 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-01-19 14:46:17 UTC using RuboCop version 1.50.2.
# 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: 17
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/unit/pdk/cli/remove/config_spec.rb'
- 'spec/unit/pdk/cli/set/config_spec.rb'
- 'spec/unit/pdk/config_spec.rb'
- 'spec/unit/pdk/validate/invokable_validator_spec.rb'
# Offense count: 19
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'Rakefile'
- 'spec/support/file_based_namespaces.rb'
- 'spec/unit/pdk/cli/remove/config_spec.rb'
- 'spec/unit/pdk/cli/set/config_spec.rb'
- 'spec/unit/pdk/config_spec.rb'
- 'spec/unit/pdk/template/fetcher_spec.rb'
- 'spec/unit/pdk/template_spec.rb'
# Offense count: 113
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 110
# Offense count: 25
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 105
# Offense count: 16
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 258
# Offense count: 53
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 24
# Offense count: 137
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 145
# Offense count: 6
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 197
# Offense count: 45
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 28
# Offense count: 37
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'lib/pdk/cli/bundle.rb'
- 'lib/pdk/cli/console.rb'
- 'lib/pdk/cli/env.rb'
- 'spec/acceptance/convert_spec.rb'
- 'spec/acceptance/report_spec.rb'
- 'spec/acceptance/test_unit_spec.rb'
- 'spec/acceptance/validate_all_spec.rb'
- 'spec/acceptance/validate_puppet_spec.rb'
- 'spec/acceptance/validate_tasks_spec.rb'
- 'spec/unit/pdk/cli/update_spec.rb'
- 'spec/unit/pdk/config_spec.rb'
- 'spec/unit/pdk/module/update_manager_spec.rb'
- 'spec/unit/pdk/report/event_spec.rb'
- 'spec/unit/pdk/util/changelog_generator_spec.rb'
- 'spec/unit/pdk/validate/control_repo/environment_conf_validator_spec.rb'
# Offense count: 7
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/pdk/config.rb'
- 'lib/pdk/module/release.rb'
- 'lib/pdk/report.rb'
- 'lib/pdk/tests/unit.rb'
- 'lib/pdk/util/git.rb'
- 'spec/unit/pdk/config_spec.rb'
# Offense count: 473
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 57
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Enabled: false
# Offense count: 173
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 40
# Offense count: 54
RSpec/ExpectInHook:
Enabled: false
# Offense count: 4
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
Exclude:
- 'spec/unit/pdk/template/renderer/v1/renderer_spec.rb'
- 'spec/unit/pdk/validate/external_command_validator_spec.rb'
# Offense count: 17
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/unit/pdk/cli/remove/config_spec.rb'
- 'spec/unit/pdk/cli/set/config_spec.rb'
- 'spec/unit/pdk/config_spec.rb'
- 'spec/unit/pdk/validate/invokable_validator_spec.rb'
# Offense count: 335
RSpec/MultipleExpectations:
Max: 6
# Offense count: 452
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 14
# Offense count: 84
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Enabled: false
# Offense count: 4
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/unit/pdk/generate/module_spec.rb'
- 'spec/unit/pdk/module/release_spec.rb'
- 'spec/unit/pdk/template_spec.rb'
# Offense count: 4
RSpec/PendingWithoutReason:
Exclude:
- 'spec/unit/pdk/config/json_schema_namespace_spec.rb'
- 'spec/unit/pdk/config/json_schema_setting_spec.rb'
- 'spec/unit/pdk/config/json_with_schema_spec.rb'
- 'spec/unit/pdk/config/yaml_with_schema_spec.rb'
# Offense count: 21
RSpec/RepeatedExampleGroupBody:
Exclude:
- 'package-testing/spec/package/unit_test_a_new_module_spec.rb'
- 'package-testing/spec/package/unprivileged_user_spec.rb'
- 'spec/acceptance/convert_spec.rb'
- 'spec/acceptance/new_provider_spec.rb'
- 'spec/acceptance/new_transport_spec.rb'
- 'spec/acceptance/test_unit_spec.rb'
- 'spec/acceptance/update_spec.rb'
- 'spec/acceptance/version_changer_spec.rb'
# Offense count: 101
RSpec/StubbedMock:
Enabled: false
# Offense count: 17
RSpec/SubjectStub:
Exclude:
- 'spec/support/file_based_namespaces.rb'
- 'spec/unit/pdk/config/namespace_spec.rb'
- 'spec/unit/pdk/template/renderer/v1/renderer_spec.rb'
# Offense count: 177
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# Offense count: 330
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 4
Style/OpenStructUse:
Exclude:
- 'lib/pdk/template/renderer/v1/template_file.rb'
- 'spec/unit/pdk/validate/ruby/ruby_rubocop_validator_spec.rb'
# Offense count: 9
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/pdk/cli/util.rb'
- 'lib/pdk/control_repo.rb'
- 'lib/pdk/module.rb'
- 'lib/pdk/util/json_finder.rb'
- 'lib/pdk/validate.rb'
- 'package-testing/spec/package/support/spec_utils.rb'
- 'spec/unit/pdk/context_spec.rb'
# Offense count: 13
# This cop supports safe autocorrection (--autocorrect).
Style/StderrPuts:
Exclude:
- 'Rakefile'
- 'lib/pdk/tests/unit.rb'
- 'lib/pdk/validate/external_command_validator.rb'
- 'package-testing/Rakefile'
- 'package-testing/spec/package/support/serverspec_monkeypatch.rb'