1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2024-01-30 16:36:55 UTC using RuboCop version 1.50.2 .
3
+ # on 2025-04-09 15:12:12 UTC using RuboCop version 1.70.0 .
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
@@ -15,7 +15,7 @@ Gemspec/RequireMFA:
15
15
- ' ruby-pwsh.gemspec'
16
16
17
17
# Offense count: 1
18
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
18
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch .
19
19
Lint/DuplicateBranch :
20
20
Exclude :
21
21
- ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
@@ -32,28 +32,42 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
32
32
Exclude :
33
33
- ' lib/pwsh.rb'
34
34
35
- # Offense count: 17
35
+ # Offense count: 2
36
+ # This cop supports safe autocorrection (--autocorrect).
37
+ Lint/RedundantCopDisableDirective :
38
+ Exclude :
39
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
40
+
41
+ # Offense count: 1
42
+ # This cop supports safe autocorrection (--autocorrect).
43
+ # Configuration parameters: EnforcedStyle.
44
+ # SupportedStyles: strict, consistent
45
+ Lint/SymbolConversion :
46
+ Exclude :
47
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
48
+
49
+ # Offense count: 16
36
50
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
37
51
Metrics/AbcSize :
38
- Max : 83
52
+ Max : 63
39
53
40
- # Offense count: 2
54
+ # Offense count: 1
41
55
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
42
56
# AllowedMethods: refine
43
57
Metrics/BlockLength :
44
- Max : 35
58
+ Max : 28
45
59
46
- # Offense count: 2
60
+ # Offense count: 1
47
61
# Configuration parameters: CountComments, CountAsOne.
48
62
Metrics/ClassLength :
49
- Max : 553
63
+ Max : 296
50
64
51
65
# Offense count: 12
52
66
# Configuration parameters: AllowedMethods, AllowedPatterns.
53
67
Metrics/CyclomaticComplexity :
54
68
Max : 24
55
69
56
- # Offense count: 23
70
+ # Offense count: 22
57
71
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
58
72
Metrics/MethodLength :
59
73
Max : 42
@@ -63,12 +77,21 @@ Metrics/MethodLength:
63
77
Metrics/PerceivedComplexity :
64
78
Max : 24
65
79
80
+ # Offense count: 1
81
+ # This cop supports safe autocorrection (--autocorrect).
82
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
83
+ # SupportedStyles: anonymous, explicit
84
+ Naming/BlockForwarding :
85
+ Exclude :
86
+ - ' lib/pwsh.rb'
87
+
66
88
# Offense count: 1
67
89
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
68
90
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
69
91
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
70
92
Naming/FileName :
71
93
Exclude :
94
+ - ' Rakefile.rb'
72
95
- ' lib/ruby-pwsh.rb'
73
96
74
97
# Offense count: 1
@@ -118,12 +141,12 @@ RSpec/DescribeClass:
118
141
- ' spec/acceptance/dsc/complex.rb'
119
142
- ' spec/unit/pwsh_spec.rb'
120
143
121
- # Offense count: 32
144
+ # Offense count: 38
122
145
# Configuration parameters: CountAsOne.
123
146
RSpec/ExampleLength :
124
147
Max : 70
125
148
126
- # Offense count: 105
149
+ # Offense count: 151
127
150
# Configuration parameters: .
128
151
# SupportedStyles: have_received, receive
129
152
RSpec/MessageSpies :
@@ -134,7 +157,7 @@ RSpec/MultipleDescribes:
134
157
Exclude :
135
158
- ' spec/unit/pwsh_spec.rb'
136
159
137
- # Offense count: 151
160
+ # Offense count: 157
138
161
RSpec/MultipleExpectations :
139
162
Max : 15
140
163
@@ -156,22 +179,74 @@ RSpec/NoExpectationExample:
156
179
- ' spec/unit/pwsh/windows_powershell_spec.rb'
157
180
- ' spec/unit/pwsh_spec.rb'
158
181
159
- # Offense count: 56
182
+ # Offense count: 86
160
183
RSpec/StubbedMock :
161
184
Exclude :
162
185
- ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
163
186
- ' spec/unit/pwsh/util_spec.rb'
164
187
- ' spec/unit/pwsh/windows_powershell_spec.rb'
165
188
166
- # Offense count: 65
189
+ # Offense count: 71
167
190
RSpec/SubjectStub :
168
191
Exclude :
169
192
- ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
170
193
194
+ # Offense count: 1
195
+ # This cop supports safe autocorrection (--autocorrect).
196
+ Style/CombinableDefined :
197
+ Exclude :
198
+ - ' lib/pwsh.rb'
199
+
171
200
# Offense count: 1
172
201
# Configuration parameters: AllowedConstants.
173
202
Style/Documentation :
174
203
Exclude :
175
204
- ' spec/**/*'
176
205
- ' test/**/*'
177
206
- ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
207
+
208
+ # Offense count: 3
209
+ # This cop supports unsafe autocorrection (--autocorrect-all).
210
+ # Configuration parameters: AllowedReceivers.
211
+ # AllowedReceivers: Thread.current
212
+ Style/HashEachMethods :
213
+ Exclude :
214
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
215
+
216
+ # Offense count: 2
217
+ # This cop supports unsafe autocorrection (--autocorrect-all).
218
+ Style/HashExcept :
219
+ Exclude :
220
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
221
+ - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
222
+
223
+ # Offense count: 2
224
+ # This cop supports unsafe autocorrection (--autocorrect-all).
225
+ Style/MapIntoArray :
226
+ Exclude :
227
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
228
+
229
+ # Offense count: 1
230
+ # This cop supports safe autocorrection (--autocorrect).
231
+ Style/RedundantFreeze :
232
+ Exclude :
233
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
234
+
235
+ # Offense count: 1
236
+ # This cop supports safe autocorrection (--autocorrect).
237
+ Style/RedundantRegexpArgument :
238
+ Exclude :
239
+ - ' spec/unit/pwsh_spec.rb'
240
+
241
+ # Offense count: 1
242
+ # This cop supports safe autocorrection (--autocorrect).
243
+ Style/RedundantSelfAssignmentBranch :
244
+ Exclude :
245
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
246
+
247
+ # Offense count: 1
248
+ # This cop supports unsafe autocorrection (--autocorrect-all).
249
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
250
+ Style/ReturnNilInPredicateMethodDefinition :
251
+ Exclude :
252
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
0 commit comments