11# This configuration was generated by
22# `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 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
@@ -15,7 +15,7 @@ Gemspec/RequireMFA:
1515 - ' ruby-pwsh.gemspec'
1616
1717# Offense count: 1
18- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
18+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch .
1919Lint/DuplicateBranch :
2020 Exclude :
2121 - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
@@ -32,28 +32,42 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
3232 Exclude :
3333 - ' lib/pwsh.rb'
3434
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
3650# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
3751Metrics/AbcSize :
38- Max : 83
52+ Max : 63
3953
40- # Offense count: 2
54+ # Offense count: 1
4155# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
4256# AllowedMethods: refine
4357Metrics/BlockLength :
44- Max : 35
58+ Max : 28
4559
46- # Offense count: 2
60+ # Offense count: 1
4761# Configuration parameters: CountComments, CountAsOne.
4862Metrics/ClassLength :
49- Max : 553
63+ Max : 296
5064
5165# Offense count: 12
5266# Configuration parameters: AllowedMethods, AllowedPatterns.
5367Metrics/CyclomaticComplexity :
5468 Max : 24
5569
56- # Offense count: 23
70+ # Offense count: 22
5771# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
5872Metrics/MethodLength :
5973 Max : 42
@@ -63,12 +77,21 @@ Metrics/MethodLength:
6377Metrics/PerceivedComplexity :
6478 Max : 24
6579
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+
6688# Offense count: 1
6789# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
6890# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
6991# 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
7092Naming/FileName :
7193 Exclude :
94+ - ' Rakefile.rb'
7295 - ' lib/ruby-pwsh.rb'
7396
7497# Offense count: 1
@@ -118,12 +141,12 @@ RSpec/DescribeClass:
118141 - ' spec/acceptance/dsc/complex.rb'
119142 - ' spec/unit/pwsh_spec.rb'
120143
121- # Offense count: 32
144+ # Offense count: 38
122145# Configuration parameters: CountAsOne.
123146RSpec/ExampleLength :
124147 Max : 70
125148
126- # Offense count: 105
149+ # Offense count: 151
127150# Configuration parameters: .
128151# SupportedStyles: have_received, receive
129152RSpec/MessageSpies :
@@ -134,7 +157,7 @@ RSpec/MultipleDescribes:
134157 Exclude :
135158 - ' spec/unit/pwsh_spec.rb'
136159
137- # Offense count: 151
160+ # Offense count: 157
138161RSpec/MultipleExpectations :
139162 Max : 15
140163
@@ -156,22 +179,74 @@ RSpec/NoExpectationExample:
156179 - ' spec/unit/pwsh/windows_powershell_spec.rb'
157180 - ' spec/unit/pwsh_spec.rb'
158181
159- # Offense count: 56
182+ # Offense count: 86
160183RSpec/StubbedMock :
161184 Exclude :
162185 - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
163186 - ' spec/unit/pwsh/util_spec.rb'
164187 - ' spec/unit/pwsh/windows_powershell_spec.rb'
165188
166- # Offense count: 65
189+ # Offense count: 71
167190RSpec/SubjectStub :
168191 Exclude :
169192 - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
170193
194+ # Offense count: 1
195+ # This cop supports safe autocorrection (--autocorrect).
196+ Style/CombinableDefined :
197+ Exclude :
198+ - ' lib/pwsh.rb'
199+
171200# Offense count: 1
172201# Configuration parameters: AllowedConstants.
173202Style/Documentation :
174203 Exclude :
175204 - ' spec/**/*'
176205 - ' test/**/*'
177206 - ' 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