1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-08-29 15:24:31 UTC using RuboCop version 1.48.1.
3
+ # on 2023-08-29 15:26:08 UTC using RuboCop version 1.48.1.
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
- Layout/ClosingHeredocIndentation :
12
- Exclude :
13
- - ' spec/spec_helper_acceptance_local.rb'
14
-
15
- # Offense count: 1
16
- # This cop supports safe autocorrection (--autocorrect).
17
- Lint/RedundantCopEnableDirective :
18
- Exclude :
19
- - ' spec/unit/classes/firewall_spec.rb'
20
-
21
9
# Offense count: 20
22
10
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
23
11
Metrics/AbcSize :
@@ -49,69 +37,29 @@ Metrics/MethodLength:
49
37
Metrics/PerceivedComplexity :
50
38
Max : 122
51
39
52
- # Offense count: 1
53
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
54
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
55
- Naming/MemoizedInstanceVariableName :
56
- Exclude :
57
- - ' spec/spec_helper_acceptance_local.rb'
58
-
59
- # Offense count: 7
60
- # Configuration parameters: Prefixes, AllowedPatterns.
61
- # Prefixes: when, with, without
62
- RSpec/ContextWording :
63
- Exclude :
64
- - ' spec/acceptance/firewall_attributes_exceptions_spec.rb'
65
- - ' spec/unit/classes/firewall_linux_redhat_spec.rb'
66
- - ' spec/unit/classes/firewall_linux_spec.rb'
67
-
68
40
# Offense count: 18
69
41
# Configuration parameters: IgnoredMetadata.
70
42
RSpec/DescribeClass :
71
43
Enabled : false
72
44
73
- # Offense count: 8
74
- # This cop supports safe autocorrection (--autocorrect).
75
- # Configuration parameters: AllowConsecutiveOneLiners.
76
- RSpec/EmptyLineAfterExample :
77
- Exclude :
78
- - ' spec/unit/classes/firewall_linux_archlinux_spec.rb'
79
- - ' spec/unit/classes/firewall_linux_debian_spec.rb'
80
- - ' spec/unit/classes/firewall_linux_redhat_spec.rb'
81
-
82
- # Offense count: 1
83
- # This cop supports safe autocorrection (--autocorrect).
84
- RSpec/EmptyLineAfterExampleGroup :
85
- Exclude :
86
- - ' spec/unit/classes/firewall_spec.rb'
87
-
88
- # Offense count: 7
89
- # This cop supports safe autocorrection (--autocorrect).
90
- # Configuration parameters: AllowConsecutiveOneLiners.
91
- RSpec/EmptyLineAfterHook :
92
- Exclude :
93
- - ' spec/unit/facter/iptables_persistent_version_spec.rb'
94
- - ' spec/unit/facter/iptables_spec.rb'
95
-
96
45
# Offense count: 9
97
46
# Configuration parameters: CountAsOne.
98
47
RSpec/ExampleLength :
99
48
Max : 8
100
49
101
50
# Offense count: 41
102
- # This cop supports safe autocorrection (--autocorrect).
103
- # Configuration parameters: EnforcedStyle.
104
- # SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
105
- RSpec/ImplicitSubject :
51
+ RSpec/MultipleExpectations :
52
+ Max : 2
53
+
54
+ # Offense count: 38
55
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
56
+ # SupportedStyles: always, named_only
57
+ RSpec/NamedSubject :
106
58
Exclude :
107
59
- ' spec/unit/classes/firewall_linux_archlinux_spec.rb'
108
60
- ' spec/unit/classes/firewall_linux_debian_spec.rb'
109
61
- ' spec/unit/classes/firewall_linux_redhat_spec.rb'
110
62
111
- # Offense count: 41
112
- RSpec/MultipleExpectations :
113
- Max : 2
114
-
115
63
# Offense count: 38
116
64
# Configuration parameters: AllowedGroups.
117
65
RSpec/NestedGroups :
@@ -129,61 +77,14 @@ RSpec/NoExpectationExample:
129
77
- ' spec/acceptance/rules_spec.rb'
130
78
- ' spec/acceptance/standard_usage_spec.rb'
131
79
132
- # Offense count: 3
133
- RSpec/RepeatedExampleGroupBody :
134
- Exclude :
135
- - ' spec/unit/classes/firewall_linux_debian_spec.rb'
136
-
137
80
# Offense count: 83
138
81
# Configuration parameters: AllowedVariables.
139
82
Style/GlobalVars :
140
83
Exclude :
141
84
- ' lib/puppet/provider/firewall/firewall.rb'
142
85
- ' lib/puppet/provider/firewallchain/firewallchain.rb'
143
86
144
- # Offense count: 2
145
- # This cop supports safe autocorrection (--autocorrect).
146
- Style/IfUnlessModifier :
147
- Exclude :
148
- - ' spec/spec_helper_acceptance_local.rb'
149
-
150
87
# Offense count: 1
151
88
Style/MixinUsage :
152
89
Exclude :
153
90
- ' spec/spec_helper.rb'
154
-
155
- # Offense count: 1
156
- # This cop supports unsafe autocorrection (--autocorrect-all).
157
- # Configuration parameters: Methods.
158
- Style/RedundantArgument :
159
- Exclude :
160
- - ' spec/spec_helper_acceptance_local.rb'
161
-
162
- # Offense count: 2
163
- # This cop supports safe autocorrection (--autocorrect).
164
- # Configuration parameters: EnforcedStyle.
165
- # SupportedStyles: implicit, explicit
166
- Style/RescueStandardError :
167
- Exclude :
168
- - ' spec/spec_helper.rb'
169
- - ' spec/spec_helper_acceptance_local.rb'
170
-
171
- # Offense count: 1
172
- # This cop supports unsafe autocorrection (--autocorrect-all).
173
- Style/SlicingWithRange :
174
- Exclude :
175
- - ' spec/spec_helper_acceptance_local.rb'
176
-
177
- # Offense count: 33
178
- # This cop supports safe autocorrection (--autocorrect).
179
- # Configuration parameters: EnforcedStyleForMultiline.
180
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
181
- Style/TrailingCommaInHashLiteral :
182
- Exclude :
183
- - ' spec/spec_helper.rb'
184
- - ' spec/spec_helper_local.rb'
185
- - ' spec/unit/classes/firewall_linux_archlinux_spec.rb'
186
- - ' spec/unit/classes/firewall_linux_debian_spec.rb'
187
- - ' spec/unit/classes/firewall_linux_redhat_spec.rb'
188
- - ' spec/unit/classes/firewall_linux_spec.rb'
189
- - ' spec/unit/facter/iptables_persistent_version_spec.rb'
0 commit comments