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
77# versions of RuboCop, may require this file to be generated again.
88
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'
169
1710# Offense count: 1
18- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
11+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch .
1912Lint/DuplicateBranch :
2013 Exclude :
2114 - ' lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb'
@@ -32,28 +25,29 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
3225 Exclude :
3326 - ' lib/pwsh.rb'
3427
35- # Offense count: 17
28+
29+ # Offense count: 16
3630# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
3731Metrics/AbcSize :
38- Max : 83
32+ Max : 63
3933
40- # Offense count: 2
34+ # Offense count: 1
4135# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
4236# AllowedMethods: refine
4337Metrics/BlockLength :
44- Max : 35
38+ Max : 28
4539
46- # Offense count: 2
40+ # Offense count: 1
4741# Configuration parameters: CountComments, CountAsOne.
4842Metrics/ClassLength :
49- Max : 553
43+ Max : 296
5044
5145# Offense count: 12
5246# Configuration parameters: AllowedMethods, AllowedPatterns.
5347Metrics/CyclomaticComplexity :
5448 Max : 24
5549
56- # Offense count: 23
50+ # Offense count: 22
5751# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
5852Metrics/MethodLength :
5953 Max : 42
@@ -63,12 +57,21 @@ Metrics/MethodLength:
6357Metrics/PerceivedComplexity :
6458 Max : 24
6559
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+
6668# Offense count: 1
6769# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
6870# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
6971# 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
7072Naming/FileName :
7173 Exclude :
74+ - ' Rakefile.rb'
7275 - ' lib/ruby-pwsh.rb'
7376
7477# Offense count: 1
@@ -118,12 +121,12 @@ RSpec/DescribeClass:
118121 - ' spec/acceptance/dsc/complex.rb'
119122 - ' spec/unit/pwsh_spec.rb'
120123
121- # Offense count: 32
124+ # Offense count: 38
122125# Configuration parameters: CountAsOne.
123126RSpec/ExampleLength :
124127 Max : 70
125128
126- # Offense count: 105
129+ # Offense count: 151
127130# Configuration parameters: .
128131# SupportedStyles: have_received, receive
129132RSpec/MessageSpies :
@@ -134,7 +137,7 @@ RSpec/MultipleDescribes:
134137 Exclude :
135138 - ' spec/unit/pwsh_spec.rb'
136139
137- # Offense count: 151
140+ # Offense count: 157
138141RSpec/MultipleExpectations :
139142 Max : 15
140143
@@ -156,22 +159,64 @@ RSpec/NoExpectationExample:
156159 - ' spec/unit/pwsh/windows_powershell_spec.rb'
157160 - ' spec/unit/pwsh_spec.rb'
158161
159- # Offense count: 56
162+ # Offense count: 86
160163RSpec/StubbedMock :
161164 Exclude :
162165 - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
163166 - ' spec/unit/pwsh/util_spec.rb'
164167 - ' spec/unit/pwsh/windows_powershell_spec.rb'
165168
166- # Offense count: 65
169+ # Offense count: 71
167170RSpec/SubjectStub :
168171 Exclude :
169172 - ' spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
170173
174+
171175# Offense count: 1
172176# Configuration parameters: AllowedConstants.
173177Style/Documentation :
174178 Exclude :
175179 - ' spec/**/*'
176180 - ' test/**/*'
177181 - ' 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