Skip to content

Commit 1262c21

Browse files
committed
(maint) Rubocop Fix
1 parent 547e235 commit 1262c21

File tree

2 files changed

+3
-70
lines changed

2 files changed

+3
-70
lines changed

.rubocop_todo.yml

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-08-29 15:26:08 UTC using RuboCop version 1.48.1.
3+
# on 2025-07-01 09:21:38 UTC using RuboCop version 1.50.2.
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: 20
10-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
11-
Metrics/AbcSize:
12-
Max: 270
13-
14-
# Offense count: 2
15-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
16-
# AllowedMethods: refine
17-
Metrics/BlockLength:
18-
Max: 127
19-
20-
# Offense count: 3
21-
# Configuration parameters: CountComments, CountAsOne.
22-
Metrics/ClassLength:
23-
Max: 776
24-
25-
# Offense count: 17
26-
# Configuration parameters: AllowedMethods, AllowedPatterns.
27-
Metrics/CyclomaticComplexity:
28-
Max: 122
29-
30-
# Offense count: 20
31-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
32-
Metrics/MethodLength:
33-
Max: 135
34-
35-
# Offense count: 12
36-
# Configuration parameters: AllowedMethods, AllowedPatterns.
37-
Metrics/PerceivedComplexity:
38-
Max: 122
39-
40-
# Offense count: 18
41-
# Configuration parameters: IgnoredMetadata.
42-
RSpec/DescribeClass:
43-
Enabled: false
44-
45-
# Offense count: 9
46-
# Configuration parameters: CountAsOne.
47-
RSpec/ExampleLength:
48-
Max: 8
49-
50-
# Offense count: 41
51-
RSpec/MultipleExpectations:
52-
Max: 2
53-
549
# Offense count: 38
5510
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
5611
# SupportedStyles: always, named_only
@@ -60,31 +15,9 @@ RSpec/NamedSubject:
6015
- 'spec/unit/classes/firewall_linux_debian_spec.rb'
6116
- 'spec/unit/classes/firewall_linux_redhat_spec.rb'
6217

63-
# Offense count: 38
64-
# Configuration parameters: AllowedGroups.
65-
RSpec/NestedGroups:
66-
Max: 5
67-
68-
# Offense count: 43
69-
# Configuration parameters: AllowedPatterns.
70-
# AllowedPatterns: ^expect_, ^assert_
71-
RSpec/NoExpectationExample:
72-
Exclude:
73-
- 'spec/acceptance/class_spec.rb'
74-
- 'spec/acceptance/firewall_attributes_exceptions_spec.rb'
75-
- 'spec/acceptance/firewall_attributes_ipv6_exceptions_spec.rb'
76-
- 'spec/acceptance/firewallchain_spec.rb'
77-
- 'spec/acceptance/rules_spec.rb'
78-
- 'spec/acceptance/standard_usage_spec.rb'
79-
80-
# Offense count: 83
18+
# Offense count: 85
8119
# Configuration parameters: AllowedVariables.
8220
Style/GlobalVars:
8321
Exclude:
8422
- 'lib/puppet/provider/firewall/firewall.rb'
8523
- 'lib/puppet/provider/firewallchain/firewallchain.rb'
86-
87-
# Offense count: 1
88-
Style/MixinUsage:
89-
Exclude:
90-
- 'spec/spec_helper.rb'

spec/unit/puppet/provider/firewall/firewall_public_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
].each do |test|
6464
it "updates the resource: '#{test[:should][:name]}'" do
65-
expect(context).to receive(:notice).with(%r{\Updating Rule '#{test[:should][:name]}'})
65+
expect(context).to receive(:notice).with(%r{Updating Rule '#{test[:should][:name]}'})
6666
allow(described_class).to receive(:insert_order)
6767
.with(context, test[:should][:name], test[:should][:chain], test[:should][:table], test[:should][:protocol]).and_return(1)
6868
allow(described_class).to receive(:hash_to_rule)

0 commit comments

Comments
 (0)