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
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: Severity, Include.
12
- # Include: **/*.gemspec
13
- Gemspec/RequireMFA :
14
- Exclude :
15
- - ' ruby-pwsh.gemspec'
16
9
17
10
# Offense count: 1
18
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
11
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch .
19
12
Lint/DuplicateBranch :
20
13
Exclude :
21
14
- ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
@@ -32,28 +25,29 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
32
25
Exclude :
33
26
- ' lib/pwsh.rb'
34
27
35
- # Offense count: 17
28
+
29
+ # Offense count: 16
36
30
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
37
31
Metrics/AbcSize :
38
- Max : 83
32
+ Max : 63
39
33
40
- # Offense count: 2
34
+ # Offense count: 1
41
35
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
42
36
# AllowedMethods: refine
43
37
Metrics/BlockLength :
44
- Max : 35
38
+ Max : 28
45
39
46
- # Offense count: 2
40
+ # Offense count: 1
47
41
# Configuration parameters: CountComments, CountAsOne.
48
42
Metrics/ClassLength :
49
- Max : 553
43
+ Max : 296
50
44
51
45
# Offense count: 12
52
46
# Configuration parameters: AllowedMethods, AllowedPatterns.
53
47
Metrics/CyclomaticComplexity :
54
48
Max : 24
55
49
56
- # Offense count: 23
50
+ # Offense count: 22
57
51
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
58
52
Metrics/MethodLength :
59
53
Max : 42
@@ -63,12 +57,21 @@ Metrics/MethodLength:
63
57
Metrics/PerceivedComplexity :
64
58
Max : 24
65
59
60
+ # Offense count: 1
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
63
+ # SupportedStyles: anonymous, explicit
64
+ Naming/BlockForwarding :
65
+ Exclude :
66
+ - ' lib/pwsh.rb'
67
+
66
68
# Offense count: 1
67
69
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
68
70
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
69
71
# 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
72
Naming/FileName :
71
73
Exclude :
74
+ - ' Rakefile.rb'
72
75
- ' lib/ruby-pwsh.rb'
73
76
74
77
# Offense count: 1
@@ -118,12 +121,12 @@ RSpec/DescribeClass:
118
121
- ' spec/acceptance/dsc/complex.rb'
119
122
- ' spec/unit/pwsh_spec.rb'
120
123
121
- # Offense count: 32
124
+ # Offense count: 38
122
125
# Configuration parameters: CountAsOne.
123
126
RSpec/ExampleLength :
124
127
Max : 70
125
128
126
- # Offense count: 105
129
+ # Offense count: 151
127
130
# Configuration parameters: .
128
131
# SupportedStyles: have_received, receive
129
132
RSpec/MessageSpies :
@@ -134,7 +137,7 @@ RSpec/MultipleDescribes:
134
137
Exclude :
135
138
- ' spec/unit/pwsh_spec.rb'
136
139
137
- # Offense count: 151
140
+ # Offense count: 157
138
141
RSpec/MultipleExpectations :
139
142
Max : 15
140
143
@@ -156,22 +159,64 @@ RSpec/NoExpectationExample:
156
159
- ' spec/unit/pwsh/windows_powershell_spec.rb'
157
160
- ' spec/unit/pwsh_spec.rb'
158
161
159
- # Offense count: 56
162
+ # Offense count: 86
160
163
RSpec/StubbedMock :
161
164
Exclude :
162
165
- ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
163
166
- ' spec/unit/pwsh/util_spec.rb'
164
167
- ' spec/unit/pwsh/windows_powershell_spec.rb'
165
168
166
- # Offense count: 65
169
+ # Offense count: 71
167
170
RSpec/SubjectStub :
168
171
Exclude :
169
172
- ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
170
173
174
+
171
175
# Offense count: 1
172
176
# Configuration parameters: AllowedConstants.
173
177
Style/Documentation :
174
178
Exclude :
175
179
- ' spec/**/*'
176
180
- ' test/**/*'
177
181
- ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
182
+
183
+ # Offense count: 3
184
+ # This cop supports unsafe autocorrection (--autocorrect-all).
185
+ # Configuration parameters: AllowedReceivers.
186
+ # AllowedReceivers: Thread.current
187
+ Style/HashEachMethods :
188
+ Exclude :
189
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
190
+
191
+ # Offense count: 2
192
+ # This cop supports unsafe autocorrection (--autocorrect-all).
193
+ Style/HashExcept :
194
+ Exclude :
195
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
196
+ - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
197
+
198
+ # Offense count: 2
199
+ # This cop supports unsafe autocorrection (--autocorrect-all).
200
+ Style/MapIntoArray :
201
+ Exclude :
202
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
203
+
204
+
205
+ # Offense count: 1
206
+ # This cop supports safe autocorrection (--autocorrect).
207
+ Style/RedundantRegexpArgument :
208
+ Exclude :
209
+ - ' spec/unit/pwsh_spec.rb'
210
+
211
+ # Offense count: 1
212
+ # This cop supports safe autocorrection (--autocorrect).
213
+ Style/RedundantSelfAssignmentBranch :
214
+ Exclude :
215
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
216
+
217
+ # Offense count: 1
218
+ # This cop supports unsafe autocorrection (--autocorrect-all).
219
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
220
+ Style/ReturnNilInPredicateMethodDefinition :
221
+ Exclude :
222
+ - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
0 commit comments