Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 119 additions & 81 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2026-04-30 07:27:20 UTC using RuboCop version 1.86.0.
# on 2026-05-01 09:59:35 UTC using RuboCop version 1.86.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -11,126 +11,150 @@ Gemspec/RequiredRubyVersion:
Exclude:
- 'lutaml-model.gemspec'

# Offense count: 20
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
Exclude:
- 'lib/lutaml/model/schema/schema_builder/nokogiri.rb'
- 'lib/lutaml/model/schema/schema_builder/oga.rb'
- 'lib/lutaml/xml/adapter/nokogiri_adapter.rb'
- 'lib/lutaml/xml/adapter/oga_adapter.rb'
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/data_model.rb'
- 'lib/lutaml/xml/schema/builder/nokogiri.rb'
- 'lib/lutaml/xml/schema/builder/oga.rb'
- 'lib/lutaml/xml/schema/relaxng_schema.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'spec/lutaml/model/processing_instruction_spec.rb'
- 'lib/lutaml/model/configuration.rb'
- 'lib/lutaml/model/instrumentation.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
Layout/AssignmentIndentation:
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_element, with_fixed_indentation
Layout/ArrayAlignment:
Exclude:
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'lib/lutaml/xml/schema/xsd/base.rb'

# Offense count: 2
# Offense count: 40
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'lib/lutaml/xml/schema/xsd/complex_type.rb'
- 'lib/lutaml/xml/schema/xsd/element.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'spec/lutaml/key_value/transformation_spec.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 2
# Offense count: 32
# This cop supports safe autocorrection (--autocorrect).
Layout/BlockEndNewline:
Exclude:
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'lib/lutaml/xml/schema/xsd/complex_type.rb'
- 'lib/lutaml/xml/schema/xsd/element.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'spec/lutaml/key_value/transformation_spec.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 1
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Layout/ClosingParenthesisIndentation:
Exclude:
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterGuardClause:
Layout/ElseAlignment:
Exclude:
- 'lib/lutaml/xml/transformation.rb'
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
Exclude:
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Layout/FirstArgumentIndentation:
Exclude:
- 'lib/lutaml/xml/adapter/ox_adapter.rb'

# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'lib/lutaml/model/schema/schema_builder/nokogiri.rb'
- 'lib/lutaml/model/schema/schema_builder/oga.rb'
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/schema/builder/nokogiri.rb'
- 'lib/lutaml/xml/schema/builder/oga.rb'
- 'lib/lutaml/xml/schema/relaxng_schema.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 4
# Offense count: 58
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
# SupportedStylesAlignWith: start_of_line, relative_to_receiver
Layout/IndentationWidth:
Exclude:
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'lib/lutaml/xml/schema/xsd/complex_type.rb'
- 'lib/lutaml/xml/schema/xsd/element.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'
- 'spec/lutaml/key_value/transformation_spec.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 3191
# Offense count: 3236
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
# URISchemes: http, https
Layout/LineLength:
Enabled: false

# Offense count: 1
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Layout/MultilineBlockLayout:
Exclude:
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 17
# Offense count: 24
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'lib/lutaml/model/schema/schema_builder/nokogiri.rb'
- 'lib/lutaml/model/schema/schema_builder/oga.rb'
- 'lib/lutaml/xml/adapter/nokogiri_adapter.rb'
- 'lib/lutaml/xml/adapter/oga_adapter.rb'
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/data_model.rb'
- 'lib/lutaml/xml/schema/builder/nokogiri.rb'
- 'lib/lutaml/xml/schema/builder/oga.rb'
- 'lib/lutaml/xml/schema/relaxng_schema.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'spec/lutaml/model/processing_instruction_spec.rb'
- 'lib/lutaml/model/configuration.rb'
- 'lib/lutaml/model/instrumentation.rb'
- 'lib/lutaml/xml/schema/xsd/base.rb'
- 'lib/lutaml/xml/schema/xsd/complex_type.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'

# Offense count: 20
# Offense count: 21
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Expand Down Expand Up @@ -221,18 +245,18 @@ Lint/UnusedMethodArgument:
- 'lib/lutaml/xml/unqualified_inheritance_strategy.rb'
- 'spec/support/xml/xsd/code_example_validator.rb'

# Offense count: 2
# Offense count: 3
Lint/UselessConstantScoping:
Exclude:
- 'lib/lutaml/xml/adapter/nokogiri_adapter.rb'
- 'lib/lutaml/xml/mapping_rule.rb'

# Offense count: 329
# Offense count: 336
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
Metrics/AbcSize:
Enabled: false

# Offense count: 55
# Offense count: 54
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Expand All @@ -243,12 +267,12 @@ Metrics/BlockLength:
Metrics/BlockNesting:
Max: 6

# Offense count: 287
# Offense count: 297
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
Enabled: false

# Offense count: 534
# Offense count: 543
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 514
Expand All @@ -259,7 +283,7 @@ Metrics/ParameterLists:
Max: 24
MaxOptionalParameters: 5

# Offense count: 244
# Offense count: 251
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/PerceivedComplexity:
Enabled: false
Expand Down Expand Up @@ -346,13 +370,13 @@ RSpec/BeforeAfterAll:
- 'spec/lutaml/xml/fpi_namespace_spec.rb'
- 'spec/lutaml/xml/namespace_spec.rb'

# Offense count: 99
# Offense count: 100
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false

# Offense count: 76
# Offense count: 79
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Enabled: false
Expand All @@ -363,7 +387,7 @@ RSpec/DescribeMethod:
- 'spec/lutaml/xml/schema/xsd/schema_helper_methods_spec.rb'
- 'spec/lutaml/xml/serializable_namespace_spec.rb'

# Offense count: 1127
# Offense count: 1155
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 68
Expand Down Expand Up @@ -407,7 +431,7 @@ RSpec/InstanceVariable:
- 'spec/lutaml/xml/mapping_finalization_guard_spec.rb'
- 'spec/lutaml/xml/namespace_aware_parsing_spec.rb'

# Offense count: 24
# Offense count: 25
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/lutaml/key_value/transformation_spec.rb'
Expand Down Expand Up @@ -438,11 +462,11 @@ RSpec/MultipleDescribes:
- 'spec/lutaml/xml/namespace_resolution_strategy_spec.rb'
- 'spec/lutaml/xml/xml_space_type_spec.rb'

# Offense count: 1267
# Offense count: 1300
RSpec/MultipleExpectations:
Max: 21

# Offense count: 187
# Offense count: 189
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 15
Expand Down Expand Up @@ -486,7 +510,7 @@ RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/lutaml/model/mixed_content_spec.rb'

# Offense count: 28
# Offense count: 32
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
# SupportedInflectors: default, active_support
RSpec/SpecFilePathFormat:
Expand All @@ -510,7 +534,7 @@ Security/MarshalLoad:
Exclude:
- 'scripts-xmi-profile/profile_xmi.rb'

# Offense count: 2
# Offense count: 46
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
Expand All @@ -519,8 +543,16 @@ Security/MarshalLoad:
# AllowedMethods: lambda, proc, it
Style/BlockDelimiters:
Exclude:
- 'lib/lutaml/xml/adapter_element.rb'
- 'lib/lutaml/xml/transformation.rb'
- 'lib/lutaml/xml/schema/xsd/complex_type.rb'
- 'lib/lutaml/xml/schema/xsd/element.rb'
- 'lib/lutaml/xml/schema/xsd/schema.rb'
- 'spec/lutaml/key_value/transformation_spec.rb'
- 'spec/lutaml/model/cached_type_resolver_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/element_spec.rb'
- 'spec/lutaml/xml/schema/xsd/liquid_methods/simple_content_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Expand Down Expand Up @@ -571,11 +603,17 @@ Style/MixinUsage:
- 'bench/bench_uniword.rb'
- 'bench/bench_xmi.rb'

# Offense count: 2
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineIfModifier:
Exclude:
- 'lib/lutaml/xml/adapter/ox_adapter.rb'
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineTernaryOperator:
Exclude:
- 'lib/lutaml/xml/schema/xsd/schema_path.rb'

# Offense count: 12
# Configuration parameters: AllowedClasses.
Expand Down
Loading
Loading