11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-04-05 19:57:43 UTC using RuboCop version 1.49.0 .
3+ # on 2025-10-30 06:45:50 UTC using RuboCop version 1.81.6 .
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/DeprecatedAttributeAssignment :
14- Exclude :
15- - ' cyclonedx-ruby.gemspec'
16-
179# Offense count: 4
1810# This cop supports safe autocorrection (--autocorrect).
19- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
20- # Include: **/*.gemspec
11+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
2112Gemspec/OrderedDependencies :
2213 Exclude :
2314 - ' cyclonedx-ruby.gemspec'
2415
25- # Offense count: 1
26- # This cop supports safe autocorrection (--autocorrect).
27- # Configuration parameters: Severity, Include.
28- # Include: **/*.gemspec
29- Gemspec/RequireMFA :
30- Exclude :
31- - ' cyclonedx-ruby.gemspec'
32-
33- # Offense count: 1
34- # This cop supports safe autocorrection (--autocorrect).
35- Layout/EmptyLineAfterMagicComment :
36- Exclude :
37- - ' lib/bom_builder.rb'
38-
39- # Offense count: 1
40- # This cop supports safe autocorrection (--autocorrect).
41- # Configuration parameters: EnforcedStyle.
42- # SupportedStyles: around, only_before
43- Layout/EmptyLinesAroundAccessModifier :
44- Exclude :
45- - ' lib/bom_builder.rb'
46-
47- # Offense count: 1
48- # This cop supports safe autocorrection (--autocorrect).
49- Layout/EmptyLinesAroundMethodBody :
50- Exclude :
51- - ' lib/bom_component.rb'
52-
53- # Offense count: 1
16+ # Offense count: 2
5417# This cop supports safe autocorrection (--autocorrect).
5518# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
5619Layout/ExtraSpacing :
5720 Exclude :
5821 - ' cyclonedx-ruby.gemspec'
5922
60- # Offense count: 1
61- # This cop supports safe autocorrection (--autocorrect).
62- # Configuration parameters: EnforcedStyle, IndentationWidth.
63- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
64- Layout/FirstArrayElementIndentation :
65- Exclude :
66- - ' lib/bom_component.rb'
67-
68- # Offense count: 1
69- # This cop supports safe autocorrection (--autocorrect).
70- Layout/LeadingEmptyLines :
71- Exclude :
72- - ' lib/bom_component.rb'
73-
74- # Offense count: 2
75- # This cop supports safe autocorrection (--autocorrect).
76- # Configuration parameters: EnforcedStyle.
77- # SupportedStyles: final_newline, final_blank_line
78- Layout/TrailingEmptyLines :
79- Exclude :
80- - ' Rakefile'
81- - ' lib/bom_component.rb'
82-
83- # Offense count: 3
84- # This cop supports safe autocorrection (--autocorrect).
85- # Configuration parameters: AllowInHeredoc.
86- Layout/TrailingWhitespace :
87- Exclude :
88- - ' Rakefile'
89- - ' spec/bom_component_spec.rb'
90-
91- # Offense count: 2
92- Lint/IneffectiveAccessModifier :
93- Exclude :
94- - ' lib/bom_builder.rb'
95-
96- # Offense count: 1
97- # This cop supports safe autocorrection (--autocorrect).
98- Lint/ScriptPermission :
99- Exclude :
100- - ' Rakefile'
101-
102- # Offense count: 1
103- Lint/ShadowingOuterLocalVariable :
104- Exclude :
105- - ' lib/bom_builder.rb'
106-
107- # Offense count: 19
108- # This cop supports safe autocorrection (--autocorrect).
109- # Configuration parameters: EnforcedStyle.
110- # SupportedStyles: strict, consistent
111- Lint/SymbolConversion :
112- Exclude :
113- - ' lib/bom_component.rb'
114- - ' lib/bom_helpers.rb'
115-
116- # Offense count: 1
117- # This cop supports safe autocorrection (--autocorrect).
118- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
119- Lint/UnusedMethodArgument :
120- Exclude :
121- - ' lib/bom_builder.rb'
122-
123- # Offense count: 1
124- # This cop supports safe autocorrection (--autocorrect).
125- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
126- Lint/UselessAccessModifier :
127- Exclude :
128- - ' lib/bom_builder.rb'
129-
13023# Offense count: 4
13124# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
13225Metrics/AbcSize :
133- Max : 67
26+ Max : 68
13427
13528# Offense count: 4
13629# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
@@ -141,92 +34,52 @@ Metrics/BlockLength:
14134# Offense count: 1
14235# Configuration parameters: CountComments, CountAsOne.
14336Metrics/ClassLength :
144- Max : 128
37+ Max : 129
14538
14639# Offense count: 1
14740# Configuration parameters: AllowedMethods, AllowedPatterns.
14841Metrics/CyclomaticComplexity :
14942 Max : 9
15043
151- # Offense count: 6
44+ # Offense count: 7
15245# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
15346Metrics/MethodLength :
154- Max : 68
47+ Max : 69
15548
15649# Offense count: 1
15750# Configuration parameters: AllowedMethods, AllowedPatterns.
15851Metrics/PerceivedComplexity :
15952 Max : 12
16053
161- # Offense count: 1
162- # This cop supports safe autocorrection (--autocorrect).
163- # Configuration parameters: PreferredName.
164- Naming/RescuedExceptionsVariableName :
165- Exclude :
166- - ' Rakefile'
167-
168- # Offense count: 3
54+ # Offense count: 4
16955# Configuration parameters: AllowedConstants.
17056Style/Documentation :
17157 Exclude :
17258 - ' spec/**/*'
17359 - ' test/**/*'
174- - ' Rakefile'
175- - ' lib/bom_builder.rb'
176- - ' lib/bom_component.rb'
177-
178- # Offense count: 1
179- # This cop supports safe autocorrection (--autocorrect).
180- # Configuration parameters: AllowedVars.
181- Style/FetchEnvVar :
182- Exclude :
183- - ' lib/bom_helpers.rb'
60+ - ' lib/cyclonedx/bom_builder.rb'
61+ - ' lib/cyclonedx/bom_component.rb'
62+ - ' lib/cyclonedx/bom_helpers.rb'
63+ - ' lib/cyclonedx/ruby/deprecation.rb'
18464
18565# Offense count: 1
186- # This cop supports safe autocorrection (--autocorrect).
187- Style/FileWrite :
66+ Style/MixinUsage :
18867 Exclude :
189- - ' lib/bom_builder.rb'
190-
191- # Offense count: 12
192- # This cop supports unsafe autocorrection (--autocorrect-all).
193- # Configuration parameters: EnforcedStyle.
194- # SupportedStyles: always, always_true, never
195- Style/FrozenStringLiteralComment :
196- Exclude :
197- - ' .simplecov'
198- - ' Gemfile'
199- - ' Rakefile'
200- - ' features/fixtures/simple/Gemfile'
201- - ' features/step_definitions/json_bom_matching.rb'
202- - ' features/step_definitions/xml_bom_matching.rb'
203- - ' features/support/env.rb'
204- - ' features/support/simplecov_support.rb'
205- - ' lib/bom_component.rb'
206- - ' spec/bom_component_spec.rb'
207- - ' spec/bom_helpers_spec.rb'
208- - ' spec/spec_helper.rb'
209-
210- # Offense count: 1
211- # This cop supports safe autocorrection (--autocorrect).
212- # Configuration parameters: AllowedMethods, AllowedPatterns.
213- Style/MethodCallWithoutArgsParentheses :
214- Exclude :
215- - ' lib/bom_helpers.rb'
68+ - ' lib/cyclonedx_deprecated.rb'
21669
21770# Offense count: 1
21871# This cop supports unsafe autocorrection (--autocorrect-all).
21972# Configuration parameters: EnforcedStyle.
22073# SupportedStyles: literals, strict
22174Style/MutableConstant :
22275 Exclude :
223- - ' lib/bom_builder.rb'
76+ - ' lib/cyclonedx/ bom_builder.rb'
22477
22578# Offense count: 2
22679Style/OpenStructUse :
22780 Exclude :
228- - ' lib/bom_builder.rb'
229- - ' spec/bom_component_spec.rb'
81+ - ' lib/cyclonedx/ bom_builder.rb'
82+ - ' spec/cyclonedx/ bom_component_spec.rb'
23083
23184# Offense count: 1
23285# This cop supports safe autocorrection (--autocorrect).
@@ -235,27 +88,14 @@ Style/PercentLiteralDelimiters:
23588 Exclude :
23689 - ' Rakefile'
23790
238- # Offense count: 19
239- # This cop supports safe autocorrection (--autocorrect).
240- # Configuration parameters: .
241- # SupportedStyles: same_as_string_literals, single_quotes, double_quotes
242- Style/QuotedSymbols :
243- EnforcedStyle : double_quotes
244-
245- # Offense count: 1
246- # This cop supports safe autocorrection (--autocorrect).
247- Style/RedundantBegin :
248- Exclude :
249- - ' Rakefile'
250-
25191# Offense count: 6
25292# This cop supports safe autocorrection (--autocorrect).
25393Style/RedundantRegexpEscape :
25494 Exclude :
25595 - ' features/step_definitions/json_bom_matching.rb'
25696 - ' features/step_definitions/xml_bom_matching.rb'
25797
258- # Offense count: 20
98+ # Offense count: 41
25999# This cop supports safe autocorrection (--autocorrect).
260100# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
261101# SupportedStyles: single_quotes, double_quotes
@@ -266,8 +106,6 @@ Style/StringLiterals:
266106 - ' cyclonedx-ruby.gemspec'
267107 - ' lib/bom_component.rb'
268108 - ' lib/bom_helpers.rb'
269- - ' spec/bom_component_spec.rb'
270- - ' spec/bom_helpers_spec.rb'
271109
272110# Offense count: 1
273111# This cop supports safe autocorrection (--autocorrect).
@@ -276,15 +114,9 @@ Style/StringLiterals:
276114Style/SymbolArray :
277115 EnforcedStyle : brackets
278116
279- # Offense count: 2
280- # This cop supports safe autocorrection (--autocorrect).
281- Style/SymbolLiteral :
282- Exclude :
283- - ' lib/bom_component.rb'
284-
285- # Offense count: 5
117+ # Offense count: 7
286118# This cop supports safe autocorrection (--autocorrect).
287- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
119+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings .
288120# URISchemes: http, https
289121Layout/LineLength :
290122 Max : 237
0 commit comments