lutaml 0.10.17 → 0.10.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop_todo.yml +216 -5
  4. data/lib/lutaml/cli/element_identifier.rb +0 -2
  5. data/lib/lutaml/cli/enhanced_formatter.rb +0 -1
  6. data/lib/lutaml/cli/interactive_shell/bookmark_commands.rb +0 -3
  7. data/lib/lutaml/cli/interactive_shell/export_handler.rb +0 -2
  8. data/lib/lutaml/cli/interactive_shell/help_display.rb +0 -3
  9. data/lib/lutaml/cli/interactive_shell/navigation_commands.rb +0 -3
  10. data/lib/lutaml/cli/interactive_shell/query_commands.rb +0 -3
  11. data/lib/lutaml/cli/interactive_shell.rb +8 -8
  12. data/lib/lutaml/cli/lml_commands.rb +0 -6
  13. data/lib/lutaml/cli/uml/build_command.rb +11 -16
  14. data/lib/lutaml/cli/uml/diagram_command.rb +27 -9
  15. data/lib/lutaml/cli/uml/export_command.rb +0 -1
  16. data/lib/lutaml/cli/uml/find_command.rb +0 -3
  17. data/lib/lutaml/cli/uml/info_command.rb +0 -1
  18. data/lib/lutaml/cli/uml/inspect_command.rb +0 -3
  19. data/lib/lutaml/cli/uml/ls_command.rb +0 -3
  20. data/lib/lutaml/cli/uml/repl_command.rb +0 -1
  21. data/lib/lutaml/cli/uml/search_command.rb +0 -3
  22. data/lib/lutaml/cli/uml/serve_command.rb +0 -1
  23. data/lib/lutaml/cli/uml/shared_helpers.rb +0 -2
  24. data/lib/lutaml/cli/uml/spa_command.rb +0 -5
  25. data/lib/lutaml/cli/uml/stats_command.rb +0 -3
  26. data/lib/lutaml/cli/uml/tree_command.rb +0 -3
  27. data/lib/lutaml/cli/uml/validate_command.rb +0 -5
  28. data/lib/lutaml/cli/uml/verify_command.rb +0 -3
  29. data/lib/lutaml/cli/uml.rb +24 -0
  30. data/lib/lutaml/cli/uml_commands.rb +0 -18
  31. data/lib/lutaml/cli.rb +14 -2
  32. data/lib/lutaml/converter/xmi_to_uml.rb +2 -2
  33. data/lib/lutaml/converter/xmi_to_uml_generalization.rb +1 -1
  34. data/lib/lutaml/converter.rb +10 -0
  35. data/lib/lutaml/ea/diagram/element_renderers/class_renderer.rb +0 -2
  36. data/lib/lutaml/ea/diagram/element_renderers/connector_renderer.rb +0 -2
  37. data/lib/lutaml/ea/diagram/element_renderers/package_renderer.rb +0 -2
  38. data/lib/lutaml/ea/diagram/element_renderers.rb +18 -0
  39. data/lib/lutaml/ea/diagram/extractor.rb +0 -2
  40. data/lib/lutaml/ea/diagram/layout_engine.rb +0 -2
  41. data/lib/lutaml/ea/diagram/path_builder.rb +0 -2
  42. data/lib/lutaml/ea/diagram/style_resolver.rb +0 -3
  43. data/lib/lutaml/ea/diagram/svg_renderer.rb +0 -6
  44. data/lib/lutaml/ea/diagram.rb +10 -25
  45. data/lib/lutaml/ea.rb +7 -0
  46. data/lib/lutaml/formatter/base.rb +0 -3
  47. data/lib/lutaml/formatter/graphviz.rb +0 -2
  48. data/lib/lutaml/layout/graph_viz_engine.rb +0 -1
  49. data/lib/lutaml/model_transformations/format_registry.rb +0 -2
  50. data/lib/lutaml/model_transformations/parsers/qea_parser.rb +0 -3
  51. data/lib/lutaml/model_transformations/parsers/xmi_parser.rb +0 -3
  52. data/lib/lutaml/model_transformations/transformation_engine.rb +0 -4
  53. data/lib/lutaml/qea/benchmark.rb +0 -2
  54. data/lib/lutaml/qea/database.rb +53 -3
  55. data/lib/lutaml/qea/factory/association_builder.rb +0 -2
  56. data/lib/lutaml/qea/factory/association_transformer.rb +0 -4
  57. data/lib/lutaml/qea/factory/attribute_tag_transformer.rb +0 -3
  58. data/lib/lutaml/qea/factory/attribute_transformer.rb +0 -4
  59. data/lib/lutaml/qea/factory/class_transformer.rb +0 -11
  60. data/lib/lutaml/qea/factory/constraint_transformer.rb +0 -3
  61. data/lib/lutaml/qea/factory/data_type_transformer.rb +0 -8
  62. data/lib/lutaml/qea/factory/diagram_transformer.rb +0 -5
  63. data/lib/lutaml/qea/factory/document_builder.rb +0 -2
  64. data/lib/lutaml/qea/factory/ea_to_uml_factory.rb +0 -7
  65. data/lib/lutaml/qea/factory/enum_transformer.rb +0 -5
  66. data/lib/lutaml/qea/factory/generalization_builder.rb +0 -5
  67. data/lib/lutaml/qea/factory/generalization_transformer.rb +0 -3
  68. data/lib/lutaml/qea/factory/instance_transformer.rb +0 -4
  69. data/lib/lutaml/qea/factory/object_property_transformer.rb +0 -3
  70. data/lib/lutaml/qea/factory/operation_transformer.rb +0 -3
  71. data/lib/lutaml/qea/factory/package_transformer.rb +0 -7
  72. data/lib/lutaml/qea/factory/tagged_value_transformer.rb +0 -3
  73. data/lib/lutaml/qea/factory/transformer_registry.rb +0 -8
  74. data/lib/lutaml/qea/factory.rb +37 -0
  75. data/lib/lutaml/qea/infrastructure.rb +12 -0
  76. data/lib/lutaml/qea/models/ea_attribute.rb +0 -2
  77. data/lib/lutaml/qea/models/ea_attribute_tag.rb +0 -2
  78. data/lib/lutaml/qea/models/ea_complexity_type.rb +0 -2
  79. data/lib/lutaml/qea/models/ea_connector.rb +0 -2
  80. data/lib/lutaml/qea/models/ea_connector_type.rb +0 -2
  81. data/lib/lutaml/qea/models/ea_constraint_type.rb +0 -2
  82. data/lib/lutaml/qea/models/ea_datatype.rb +0 -2
  83. data/lib/lutaml/qea/models/ea_diagram.rb +0 -2
  84. data/lib/lutaml/qea/models/ea_diagram_link.rb +0 -2
  85. data/lib/lutaml/qea/models/ea_diagram_object.rb +0 -2
  86. data/lib/lutaml/qea/models/ea_diagram_type.rb +0 -2
  87. data/lib/lutaml/qea/models/ea_document.rb +0 -2
  88. data/lib/lutaml/qea/models/ea_object.rb +0 -2
  89. data/lib/lutaml/qea/models/ea_object_constraint.rb +0 -2
  90. data/lib/lutaml/qea/models/ea_object_property.rb +0 -2
  91. data/lib/lutaml/qea/models/ea_object_type.rb +0 -2
  92. data/lib/lutaml/qea/models/ea_operation.rb +0 -2
  93. data/lib/lutaml/qea/models/ea_operation_param.rb +0 -2
  94. data/lib/lutaml/qea/models/ea_package.rb +0 -2
  95. data/lib/lutaml/qea/models/ea_script.rb +0 -2
  96. data/lib/lutaml/qea/models/ea_status_type.rb +0 -2
  97. data/lib/lutaml/qea/models/ea_stereotype.rb +0 -2
  98. data/lib/lutaml/qea/models/ea_tagged_value.rb +0 -2
  99. data/lib/lutaml/qea/models/ea_xref.rb +0 -2
  100. data/lib/lutaml/qea/models.rb +35 -0
  101. data/lib/lutaml/qea/parser.rb +0 -4
  102. data/lib/lutaml/qea/repositories/object_repository.rb +0 -2
  103. data/lib/lutaml/qea/repositories.rb +10 -0
  104. data/lib/lutaml/qea/services/database_loader.rb +0 -29
  105. data/lib/lutaml/qea/services.rb +10 -0
  106. data/lib/lutaml/qea/validation/association_validator.rb +0 -2
  107. data/lib/lutaml/qea/validation/attribute_validator.rb +0 -2
  108. data/lib/lutaml/qea/validation/base_validator.rb +0 -2
  109. data/lib/lutaml/qea/validation/class_validator.rb +0 -2
  110. data/lib/lutaml/qea/validation/database/circular_reference_validator.rb +0 -2
  111. data/lib/lutaml/qea/validation/database/orphan_validator.rb +0 -2
  112. data/lib/lutaml/qea/validation/database/referential_integrity_validator.rb +0 -2
  113. data/lib/lutaml/qea/validation/database.rb +10 -0
  114. data/lib/lutaml/qea/validation/diagram_validator.rb +0 -2
  115. data/lib/lutaml/qea/validation/operation_validator.rb +0 -2
  116. data/lib/lutaml/qea/validation/package_validator.rb +0 -2
  117. data/lib/lutaml/qea/validation/validation_engine.rb +0 -14
  118. data/lib/lutaml/qea/validation/validation_result.rb +0 -2
  119. data/lib/lutaml/qea/validation.rb +27 -0
  120. data/lib/lutaml/qea/verification/document_verifier.rb +0 -7
  121. data/lib/lutaml/qea/verification.rb +14 -0
  122. data/lib/lutaml/qea.rb +13 -14
  123. data/lib/lutaml/uml/association.rb +0 -4
  124. data/lib/lutaml/uml/class.rb +0 -8
  125. data/lib/lutaml/uml/classifier.rb +0 -4
  126. data/lib/lutaml/uml/data_type.rb +0 -6
  127. data/lib/lutaml/uml/diagram.rb +0 -4
  128. data/lib/lutaml/uml/document.rb +0 -12
  129. data/lib/lutaml/uml/enum.rb +0 -4
  130. data/lib/lutaml/uml/generalization.rb +0 -2
  131. data/lib/lutaml/uml/node/attribute.rb +0 -4
  132. data/lib/lutaml/uml/node/base.rb +0 -2
  133. data/lib/lutaml/uml/node/class_node.rb +0 -7
  134. data/lib/lutaml/uml/node/class_relationship.rb +0 -3
  135. data/lib/lutaml/uml/node/document.rb +0 -3
  136. data/lib/lutaml/uml/node/method_argument.rb +0 -4
  137. data/lib/lutaml/uml/node/operation.rb +0 -4
  138. data/lib/lutaml/uml/node/relationship.rb +0 -4
  139. data/lib/lutaml/uml/operation.rb +0 -2
  140. data/lib/lutaml/uml/package.rb +0 -6
  141. data/lib/lutaml/uml/parsers/dsl.rb +0 -4
  142. data/lib/lutaml/uml/qualified_name.rb +0 -2
  143. data/lib/lutaml/uml/top_element.rb +0 -3
  144. data/lib/lutaml/uml/validation/document_structure_validator.rb +0 -2
  145. data/lib/lutaml/uml.rb +26 -11
  146. data/lib/lutaml/uml_repository/exporters/json_exporter.rb +0 -1
  147. data/lib/lutaml/uml_repository/exporters/markdown/formatting.rb +0 -2
  148. data/lib/lutaml/uml_repository/exporters/markdown.rb +20 -0
  149. data/lib/lutaml/uml_repository/exporters/markdown_exporter.rb +0 -7
  150. data/lib/lutaml/uml_repository/index_builder.rb +4 -6
  151. data/lib/lutaml/uml_repository/index_builders/association_index.rb +113 -111
  152. data/lib/lutaml/uml_repository/index_builders/class_index.rb +86 -78
  153. data/lib/lutaml/uml_repository/index_builders/package_index.rb +45 -40
  154. data/lib/lutaml/uml_repository/index_builders.rb +13 -0
  155. data/lib/lutaml/uml_repository/lazy_repository.rb +0 -2
  156. data/lib/lutaml/uml_repository/package_exporter.rb +0 -1
  157. data/lib/lutaml/uml_repository/package_loader.rb +0 -3
  158. data/lib/lutaml/uml_repository/presenters/association_presenter.rb +0 -3
  159. data/lib/lutaml/uml_repository/presenters/attribute_presenter.rb +0 -3
  160. data/lib/lutaml/uml_repository/presenters/class_presenter.rb +0 -3
  161. data/lib/lutaml/uml_repository/presenters/datatype_presenter.rb +0 -3
  162. data/lib/lutaml/uml_repository/presenters/diagram_presenter.rb +0 -5
  163. data/lib/lutaml/uml_repository/presenters/enum_presenter.rb +0 -3
  164. data/lib/lutaml/uml_repository/presenters/package_presenter.rb +0 -3
  165. data/lib/lutaml/uml_repository/presenters/presenter_factory.rb +0 -2
  166. data/lib/lutaml/uml_repository/queries/association_query.rb +0 -3
  167. data/lib/lutaml/uml_repository/queries/class_query.rb +0 -4
  168. data/lib/lutaml/uml_repository/queries/diagram_query.rb +0 -3
  169. data/lib/lutaml/uml_repository/queries/inheritance_query.rb +0 -3
  170. data/lib/lutaml/uml_repository/queries/package_query.rb +0 -3
  171. data/lib/lutaml/uml_repository/queries/search_query.rb +16 -9
  172. data/lib/lutaml/uml_repository/query_dsl/conditions/block_condition.rb +0 -2
  173. data/lib/lutaml/uml_repository/query_dsl/conditions/hash_condition.rb +0 -2
  174. data/lib/lutaml/uml_repository/query_dsl/conditions/package_condition.rb +0 -3
  175. data/lib/lutaml/uml_repository/query_dsl/query_builder.rb +0 -6
  176. data/lib/lutaml/uml_repository/repository/loader.rb +0 -3
  177. data/lib/lutaml/uml_repository/repository.rb +3 -21
  178. data/lib/lutaml/uml_repository/repository_enhanced.rb +10 -6
  179. data/lib/lutaml/uml_repository/static_site/association_serialization.rb +0 -5
  180. data/lib/lutaml/uml_repository/static_site/data_transformer.rb +0 -14
  181. data/lib/lutaml/uml_repository/static_site/generator.rb +0 -4
  182. data/lib/lutaml/uml_repository/static_site/models/spa_association.rb +0 -3
  183. data/lib/lutaml/uml_repository/static_site/models/spa_association_end.rb +0 -3
  184. data/lib/lutaml/uml_repository/static_site/models/spa_attribute.rb +0 -3
  185. data/lib/lutaml/uml_repository/static_site/models/spa_cardinality.rb +0 -2
  186. data/lib/lutaml/uml_repository/static_site/models/spa_class.rb +0 -5
  187. data/lib/lutaml/uml_repository/static_site/models/spa_diagram.rb +0 -2
  188. data/lib/lutaml/uml_repository/static_site/models/spa_document.rb +0 -11
  189. data/lib/lutaml/uml_repository/static_site/models/spa_inherited_association.rb +0 -2
  190. data/lib/lutaml/uml_repository/static_site/models/spa_inherited_attribute.rb +0 -3
  191. data/lib/lutaml/uml_repository/static_site/models/spa_literal.rb +0 -2
  192. data/lib/lutaml/uml_repository/static_site/models/spa_metadata.rb +0 -3
  193. data/lib/lutaml/uml_repository/static_site/models/spa_operation.rb +0 -3
  194. data/lib/lutaml/uml_repository/static_site/models/spa_package.rb +0 -2
  195. data/lib/lutaml/uml_repository/static_site/models/spa_package_tree_node.rb +0 -3
  196. data/lib/lutaml/uml_repository/static_site/models/spa_parameter.rb +0 -2
  197. data/lib/lutaml/uml_repository/static_site/models/spa_search_entry.rb +0 -2
  198. data/lib/lutaml/uml_repository/static_site/models/spa_statistics.rb +0 -2
  199. data/lib/lutaml/uml_repository/static_site/models/spa_tree_class_ref.rb +0 -2
  200. data/lib/lutaml/uml_repository/static_site/models.rb +46 -0
  201. data/lib/lutaml/uml_repository/static_site/search_index_builder.rb +0 -3
  202. data/lib/lutaml/uml_repository/static_site/serializers/attribute_serializer.rb +0 -4
  203. data/lib/lutaml/uml_repository/static_site/serializers/class_serializer.rb +0 -4
  204. data/lib/lutaml/uml_repository/static_site/serializers/diagram_serializer.rb +0 -3
  205. data/lib/lutaml/uml_repository/static_site/serializers/inheritance_resolver.rb +0 -7
  206. data/lib/lutaml/uml_repository/static_site/serializers/metadata_builder.rb +0 -3
  207. data/lib/lutaml/uml_repository/static_site/serializers/operation_serializer.rb +0 -3
  208. data/lib/lutaml/uml_repository/static_site/serializers/package_serializer.rb +0 -3
  209. data/lib/lutaml/uml_repository/static_site/serializers/package_tree_builder.rb +0 -4
  210. data/lib/lutaml/uml_repository/static_site/serializers.rb +26 -0
  211. data/lib/lutaml/uml_repository/static_site.rb +12 -6
  212. data/lib/lutaml/uml_repository/statistics_calculator.rb +0 -2
  213. data/lib/lutaml/uml_repository/validators/repository_validator.rb +6 -3
  214. data/lib/lutaml/uml_repository/web_ui/app.rb +0 -1
  215. data/lib/lutaml/uml_repository.rb +21 -1
  216. data/lib/lutaml/version.rb +1 -1
  217. data/lib/lutaml/xmi/parsers/xmi_base.rb +3 -2
  218. data/lib/lutaml/xmi/parsers/xmi_class_members.rb +1 -1
  219. data/lib/lutaml/xmi/parsers/xmi_connector.rb +1 -1
  220. data/lib/lutaml/xmi/parsers/xml.rb +0 -2
  221. data/lib/lutaml/xmi/xmi_lookup_service.rb +0 -2
  222. data/lib/lutaml/xmi.rb +5 -1
  223. data/lib/lutaml.rb +11 -9
  224. metadata +17 -5
  225. data/lib/lutaml/qea/lookup_indexes.rb +0 -72
  226. data/lib/lutaml/xml/parsers/xml.rb +0 -45
  227. data/lib/lutaml/xml/parsers/xsd.rb +0 -35
  228. data/lib/lutaml/xml.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 330cf6a6d4021d51bfb8ee166e4f6dce5697ed5fff82cdc6043a6d304d7e853d
4
- data.tar.gz: 4bd730f3e5a2ae0427d2157bb862788ddd516280d86b9f791ec3e46473710dac
3
+ metadata.gz: 9c53820c1a0daa57dc4a07ee45bdd249600b22a194d47f0e011fcc14147d15fd
4
+ data.tar.gz: d03fce90025ce62a4715d187b8e723dd63cb8a768a7e8e016bf4d9160a0ba2dd
5
5
  SHA512:
6
- metadata.gz: b1cf1135be7d630644fbf782c1070231a54c0c3341b8c1be7c688a4d3c29d2aa34c26ef900f056c8d50f9c10b674e0470d46646de49b5386de51896e45a79ee3
7
- data.tar.gz: 5b716ba1f4bd818a81f7fd54567add05c1ed0682fb407379db5d086fc8c636586e5a162480b821a23be4977d31ebe986be61531851faad122ddf0c74785bd59c
6
+ metadata.gz: cebc1ecb62b6a0daa11b21206995fac13a9a45d4ef9707ed248e97ff20757ee6c1a59216b96b00e2fb568bb48966a4660f03a171bc97183b343003796ea1f895
7
+ data.tar.gz: 0b3280443cd693c733f82a4a43e6b68ba4276bfabf9400d9dddd098e918315ec9bdcdec4138ffd57e0f72d2509b2f388d4de4262e0a6cf24b541f6a2bf89520c
data/.gitignore CHANGED
@@ -21,4 +21,5 @@ old-docs
21
21
 
22
22
  # Transient planning files
23
23
  TODO.*/
24
+ TODO.*.md
24
25
  .rubocop_todo.yml.tmp
data/.rubocop_todo.yml CHANGED
@@ -1,21 +1,150 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config --no-offense-counts`
3
- # on 2026-05-13 08:26:11 UTC using RuboCop version 1.86.1.
2
+ # `rubocop --auto-gen-config`
3
+ # on 2026-05-14 13:10:59 UTC using RuboCop version 1.86.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: 67
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: with_first_argument, with_fixed_indentation
13
+ Layout/ArgumentAlignment:
14
+ Enabled: false
15
+
16
+ # Offense count: 1
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
19
+ # SupportedStyles: with_first_element, with_fixed_indentation
20
+ Layout/ArrayAlignment:
21
+ Exclude:
22
+ - 'lib/lutaml/uml_repository/repository_enhanced.rb'
23
+
24
+ # Offense count: 12
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ # Configuration parameters: IndentationWidth.
27
+ Layout/AssignmentIndentation:
28
+ Exclude:
29
+ - 'lib/lutaml/cli/uml/build_command.rb'
30
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
31
+ - 'lib/lutaml/uml_repository/index_builders/class_index.rb'
32
+ - 'lib/lutaml/uml_repository/index_builders/package_index.rb'
33
+ - 'lib/lutaml/uml_repository/queries/search_query.rb'
34
+ - 'lib/lutaml/uml_repository/repository_enhanced.rb'
35
+
36
+ # Offense count: 13
37
+ # This cop supports safe autocorrection (--autocorrect).
38
+ # Configuration parameters: EnforcedStyleAlignWith.
39
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
40
+ Layout/BlockAlignment:
41
+ Exclude:
42
+ - 'lib/lutaml/cli/uml/build_command.rb'
43
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
44
+ - 'lib/lutaml/uml_repository/queries/search_query.rb'
45
+ - 'spec/lutaml/cli/search_commands_spec.rb'
46
+ - 'spec/lutaml/cli/uml/search_command_spec.rb'
47
+ - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
48
+
49
+ # Offense count: 12
50
+ # This cop supports safe autocorrection (--autocorrect).
51
+ Layout/BlockEndNewline:
52
+ Exclude:
53
+ - 'lib/lutaml/cli/uml/build_command.rb'
54
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
55
+ - 'lib/lutaml/uml_repository/queries/search_query.rb'
56
+ - 'spec/lutaml/cli/search_commands_spec.rb'
57
+ - 'spec/lutaml/cli/uml/search_command_spec.rb'
58
+ - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
59
+
60
+ # Offense count: 11
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: AllowForAlignment.
63
+ Layout/CommentIndentation:
64
+ Exclude:
65
+ - 'lib/lutaml/uml_repository/index_builders/association_index.rb'
66
+ - 'lib/lutaml/uml_repository/index_builders/class_index.rb'
67
+ - 'lib/lutaml/uml_repository/index_builders/package_index.rb'
68
+
69
+ # Offense count: 1
70
+ # This cop supports safe autocorrection (--autocorrect).
71
+ Layout/ElseAlignment:
72
+ Exclude:
73
+ - 'lib/lutaml/uml_repository/validators/repository_validator.rb'
74
+
75
+ # Offense count: 137
76
+ # This cop supports safe autocorrection (--autocorrect).
77
+ Layout/EmptyLines:
78
+ Enabled: false
79
+
80
+ # Offense count: 2
81
+ # This cop supports safe autocorrection (--autocorrect).
82
+ Layout/EmptyLinesAfterModuleInclusion:
83
+ Exclude:
84
+ - 'lib/lutaml/converter/xmi_to_uml.rb'
85
+ - 'lib/lutaml/xmi/parsers/xmi_base.rb'
86
+
87
+ # Offense count: 3
88
+ # This cop supports safe autocorrection (--autocorrect).
89
+ Layout/EmptyLinesAroundMethodBody:
90
+ Exclude:
91
+ - 'lib/lutaml/cli/uml/build_command.rb'
92
+ - 'lib/lutaml/cli/uml/spa_command.rb'
93
+ - 'lib/lutaml/cli/uml/validate_command.rb'
94
+
95
+ # Offense count: 4
96
+ # This cop supports safe autocorrection (--autocorrect).
97
+ # Configuration parameters: EnforcedStyleAlignWith.
98
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
99
+ Layout/EndAlignment:
100
+ Exclude:
101
+ - 'lib/lutaml/uml_repository/index_builders/association_index.rb'
102
+ - 'lib/lutaml/uml_repository/index_builders/class_index.rb'
103
+ - 'lib/lutaml/uml_repository/index_builders/package_index.rb'
104
+ - 'lib/lutaml/uml_repository/validators/repository_validator.rb'
105
+
106
+ # Offense count: 51
107
+ # This cop supports safe autocorrection (--autocorrect).
108
+ # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
109
+ # SupportedStylesAlignWith: start_of_line, relative_to_receiver
110
+ Layout/IndentationWidth:
111
+ Exclude:
112
+ - 'lib/lutaml/cli/uml/build_command.rb'
113
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
114
+ - 'lib/lutaml/uml_repository/index_builders/association_index.rb'
115
+ - 'lib/lutaml/uml_repository/index_builders/class_index.rb'
116
+ - 'lib/lutaml/uml_repository/index_builders/package_index.rb'
117
+ - 'lib/lutaml/uml_repository/queries/search_query.rb'
118
+ - 'lib/lutaml/uml_repository/validators/repository_validator.rb'
119
+ - 'spec/lutaml/cli/search_commands_spec.rb'
120
+ - 'spec/lutaml/cli/uml/search_command_spec.rb'
121
+ - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
122
+
123
+ # Offense count: 271
9
124
  # This cop supports safe autocorrection (--autocorrect).
10
125
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
11
126
  # URISchemes: http, https
12
127
  Layout/LineLength:
13
128
  Enabled: false
14
129
 
130
+ # Offense count: 1
131
+ # This cop supports safe autocorrection (--autocorrect).
132
+ Layout/MultilineBlockLayout:
133
+ Exclude:
134
+ - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
135
+
136
+ # Offense count: 81
137
+ # This cop supports safe autocorrection (--autocorrect).
138
+ # Configuration parameters: AllowInHeredoc.
139
+ Layout/TrailingWhitespace:
140
+ Enabled: false
141
+
142
+ # Offense count: 1
15
143
  Lint/BinaryOperatorWithIdenticalOperands:
16
144
  Exclude:
17
145
  - 'spec/lutaml/qea/lookup_tables_spec.rb'
18
146
 
147
+ # Offense count: 15
19
148
  # Configuration parameters: AllowedMethods.
20
149
  # AllowedMethods: enums
21
150
  Lint/ConstantDefinitionInBlock:
@@ -26,12 +155,14 @@ Lint/ConstantDefinitionInBlock:
26
155
  - 'spec/lutaml/model_transformations_spec.rb'
27
156
  - 'spec/lutaml/uml_repository/presenters/presenter_factory_spec.rb'
28
157
 
158
+ # Offense count: 2
29
159
  # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
30
160
  Lint/DuplicateBranch:
31
161
  Exclude:
32
162
  - 'lib/lutaml/uml/model_helpers.rb'
33
163
  - 'lib/lutaml/uml_repository/queries/package_query.rb'
34
164
 
165
+ # Offense count: 4
35
166
  # Configuration parameters: AllowComments, AllowEmptyLambdas.
36
167
  Lint/EmptyBlock:
37
168
  Exclude:
@@ -40,22 +171,25 @@ Lint/EmptyBlock:
40
171
  - 'spec/lutaml/uml_repository/package_exporter_spec.rb'
41
172
  - 'spec/lutaml/uml_repository/repository_spec.rb'
42
173
 
174
+ # Offense count: 1
43
175
  # This cop supports safe autocorrection (--autocorrect).
44
176
  # Configuration parameters: AllowComments.
45
177
  Lint/EmptyConditionalBody:
46
178
  Exclude:
47
- - 'spec/integration/qea_xmi_equivalency_spec.rb'
48
179
  - 'spec/lutaml/qea/verification/equivalence_integration_spec.rb'
49
180
 
181
+ # Offense count: 4
50
182
  Lint/IneffectiveAccessModifier:
51
183
  Exclude:
52
184
  - 'lib/lutaml/uml_repository/repository_enhanced.rb'
53
185
 
186
+ # Offense count: 1
54
187
  # Configuration parameters: AllowedParentClasses.
55
188
  Lint/MissingSuper:
56
189
  Exclude:
57
190
  - 'lib/lutaml/uml_repository/lazy_repository.rb'
58
191
 
192
+ # Offense count: 1
59
193
  # This cop supports safe autocorrection (--autocorrect).
60
194
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
61
195
  # NotImplementedExceptions: NotImplementedError
@@ -63,6 +197,7 @@ Lint/UnusedMethodArgument:
63
197
  Exclude:
64
198
  - 'lib/lutaml/cli/uml/export_command.rb'
65
199
 
200
+ # Offense count: 7
66
201
  Lint/UselessConstantScoping:
67
202
  Exclude:
68
203
  - 'lib/lutaml/cli/interactive_shell.rb'
@@ -71,6 +206,7 @@ Lint/UselessConstantScoping:
71
206
  - 'lib/lutaml/uml_repository/static_site/generator.rb'
72
207
  - 'lib/lutaml/uml_repository/static_site/serializers/inheritance_resolver.rb'
73
208
 
209
+ # Offense count: 10
74
210
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
75
211
  Metrics/AbcSize:
76
212
  Exclude:
@@ -81,28 +217,39 @@ Metrics/AbcSize:
81
217
  - 'lib/lutaml/uml_repository/queries/search_query.rb'
82
218
  - 'lib/lutaml/uml_repository/static_site/serializers/class_serializer.rb'
83
219
 
220
+ # Offense count: 1
221
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
222
+ # AllowedMethods: refine
223
+ Metrics/BlockLength:
224
+ Max: 27
225
+
226
+ # Offense count: 3
84
227
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
85
228
  Metrics/CyclomaticComplexity:
86
229
  Exclude:
87
230
  - 'lib/lutaml/qea/factory/generalization_builder.rb'
88
231
  - 'lib/lutaml/uml_repository/index_builders/association_index.rb'
89
- - 'lib/lutaml/uml_repository/queries/search_query.rb'
90
232
  - 'lib/lutaml/uml_repository/static_site/serializers/class_serializer.rb'
91
233
 
234
+ # Offense count: 55
92
235
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
93
236
  Metrics/MethodLength:
94
237
  Max: 17
95
238
 
239
+ # Offense count: 5
96
240
  # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
97
241
  Metrics/ParameterLists:
98
242
  Max: 7
99
243
 
244
+ # Offense count: 3
100
245
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
101
246
  Metrics/PerceivedComplexity:
102
247
  Exclude:
103
248
  - 'lib/lutaml/qea/factory/ea_to_uml_factory.rb'
104
249
  - 'lib/lutaml/uml_repository/static_site/serializers/class_serializer.rb'
250
+ - 'lib/lutaml/uml_repository/validators/repository_validator.rb'
105
251
 
252
+ # Offense count: 3
106
253
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
107
254
  # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
108
255
  Naming/MethodParameterName:
@@ -111,6 +258,7 @@ Naming/MethodParameterName:
111
258
  - 'lib/lutaml/uml_repository/static_site/generator.rb'
112
259
  - 'spec/lutaml/parsers/serialize_xmi_to_liquid_spec.rb'
113
260
 
261
+ # Offense count: 3
114
262
  # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
115
263
  # AllowedMethods: call
116
264
  # WaywardPredicates: infinite?, nonzero?
@@ -119,25 +267,30 @@ Naming/PredicateMethod:
119
267
  - 'lib/lutaml/qea/factory/document_builder.rb'
120
268
  - 'spec/lutaml/xmi/liquid_drops/nil_safety_spec.rb'
121
269
 
270
+ # Offense count: 2
122
271
  # Configuration parameters: MinSize.
123
272
  Performance/CollectionLiteralInLoop:
124
273
  Exclude:
125
274
  - 'spec/lutaml/qea/infrastructure/table_reader_spec.rb'
126
275
  - 'spec/lutaml/uml_repository/index_builder_spec.rb'
127
276
 
277
+ # Offense count: 2
128
278
  Performance/MapMethodChain:
129
279
  Exclude:
130
280
  - 'lib/lutaml/cli/output_formatter.rb'
131
281
  - 'lib/lutaml/qea/models/ea_diagram_link.rb'
132
282
 
283
+ # Offense count: 5
133
284
  RSpec/AnyInstance:
134
285
  Exclude:
135
286
  - 'spec/lutaml/uml_repository/static_site/generator_spec.rb'
136
287
 
288
+ # Offense count: 1
137
289
  RSpec/BeforeAfterAll:
138
290
  Exclude:
139
291
  - 'spec/lutaml/qea/verification/comprehensive_equivalence_spec.rb'
140
292
 
293
+ # Offense count: 23
141
294
  # Configuration parameters: Prefixes, AllowedPatterns.
142
295
  # Prefixes: when, with, without
143
296
  RSpec/ContextWording:
@@ -153,37 +306,43 @@ RSpec/ContextWording:
153
306
  - 'spec/lutaml/cli/uml/tree_command_spec.rb'
154
307
  - 'spec/lutaml/cli/uml/verify_command_spec.rb'
155
308
  - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
156
- - 'spec/lutaml/xml/parsers/xml_spec.rb'
157
309
 
310
+ # Offense count: 22
158
311
  # Configuration parameters: IgnoredMetadata.
159
312
  RSpec/DescribeClass:
160
313
  Enabled: false
161
314
 
315
+ # Offense count: 646
162
316
  # Configuration parameters: CountAsOne.
163
317
  RSpec/ExampleLength:
164
318
  Max: 30
165
319
 
320
+ # Offense count: 7
166
321
  # This cop supports safe autocorrection (--autocorrect).
167
322
  RSpec/ExpectActual:
168
323
  Exclude:
169
324
  - 'spec/lutaml/qea/diagram_support_spec.rb'
170
325
  - 'spec/lutaml/qea/services/configuration_spec.rb'
171
326
 
327
+ # Offense count: 1
172
328
  RSpec/ExpectInLet:
173
329
  Exclude:
174
330
  - 'spec/lutaml/ea/diagram/svg_accuracy_spec.rb'
175
331
 
332
+ # Offense count: 90
176
333
  RSpec/ExpectOutput:
177
334
  Exclude:
178
335
  - 'spec/lutaml/cli/interactive_shell_spec.rb'
179
336
  - 'spec/lutaml/cli/package_commands_spec.rb'
180
337
 
338
+ # Offense count: 5
181
339
  # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
182
340
  RSpec/IndexedLet:
183
341
  Exclude:
184
342
  - 'spec/lutaml/qea/repositories/base_repository_spec.rb'
185
343
  - 'spec/lutaml/qea/repositories/object_repository_spec.rb'
186
344
 
345
+ # Offense count: 15
187
346
  RSpec/LeakyConstantDeclaration:
188
347
  Exclude:
189
348
  - 'spec/lutaml/model_transformations/format_registry_spec.rb'
@@ -192,10 +351,12 @@ RSpec/LeakyConstantDeclaration:
192
351
  - 'spec/lutaml/model_transformations_spec.rb'
193
352
  - 'spec/lutaml/uml_repository/presenters/presenter_factory_spec.rb'
194
353
 
354
+ # Offense count: 1
195
355
  RSpec/LeakyLocalVariable:
196
356
  Exclude:
197
357
  - 'spec/lutaml/ea/diagram/svg_accuracy_spec.rb'
198
358
 
359
+ # Offense count: 11
199
360
  # Configuration parameters: EnforcedStyle.
200
361
  # SupportedStyles: have_received, receive
201
362
  RSpec/MessageSpies:
@@ -205,17 +366,21 @@ RSpec/MessageSpies:
205
366
  - 'spec/lutaml/uml_repository/presenters/diagram_presenter_spec.rb'
206
367
  - 'spec/lutaml/uml_repository/repository_spec.rb'
207
368
 
369
+ # Offense count: 40
208
370
  RSpec/MultipleExpectations:
209
371
  Max: 7
210
372
 
373
+ # Offense count: 148
211
374
  # Configuration parameters: AllowSubject.
212
375
  RSpec/MultipleMemoizedHelpers:
213
376
  Max: 11
214
377
 
378
+ # Offense count: 33
215
379
  # Configuration parameters: AllowedGroups.
216
380
  RSpec/NestedGroups:
217
381
  Max: 4
218
382
 
383
+ # Offense count: 2
219
384
  # Configuration parameters: AllowedPatterns.
220
385
  # AllowedPatterns: ^expect_, ^assert_
221
386
  RSpec/NoExpectationExample:
@@ -223,6 +388,7 @@ RSpec/NoExpectationExample:
223
388
  - 'spec/lutaml/qea/verification/comprehensive_equivalence_spec.rb'
224
389
  - 'spec/lutaml/uml_repository/static_site/generator_spec.rb'
225
390
 
391
+ # Offense count: 12
226
392
  RSpec/RepeatedExample:
227
393
  Exclude:
228
394
  - 'spec/lutaml/cli/package_commands_spec.rb'
@@ -230,10 +396,12 @@ RSpec/RepeatedExample:
230
396
  - 'spec/lutaml/qea/validation/validation_engine_spec.rb'
231
397
  - 'spec/lutaml/uml_repository/static_site/data_transformer_spec.rb'
232
398
 
399
+ # Offense count: 2
233
400
  RSpec/RepeatedExampleGroupDescription:
234
401
  Exclude:
235
402
  - 'spec/lutaml/uml/parsers/dsl_spec.rb'
236
403
 
404
+ # Offense count: 4
237
405
  # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
238
406
  # SupportedInflectors: default, active_support
239
407
  RSpec/SpecFilePathFormat:
@@ -243,20 +411,63 @@ RSpec/SpecFilePathFormat:
243
411
  - 'spec/lutaml/parsers/serialize_xmi_to_liquid_spec.rb'
244
412
  - 'spec/lutaml/uml_repository/web_ui/app_spec.rb'
245
413
 
414
+ # Offense count: 1
246
415
  Security/MarshalLoad:
247
416
  Exclude:
248
417
  - 'lib/lutaml/uml_repository/package_loader.rb'
249
418
 
419
+ # Offense count: 17
420
+ # This cop supports safe autocorrection (--autocorrect).
421
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
422
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
423
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
424
+ # FunctionalMethods: let, let!, subject, watch
425
+ # AllowedMethods: lambda, proc, it
426
+ Style/BlockDelimiters:
427
+ Exclude:
428
+ - 'lib/lutaml/cli/uml/build_command.rb'
429
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
430
+ - 'lib/lutaml/uml_repository/queries/search_query.rb'
431
+ - 'spec/lutaml/cli/search_commands_spec.rb'
432
+ - 'spec/lutaml/cli/uml/search_command_spec.rb'
433
+ - 'spec/lutaml/qea/integration/full_parsing_spec.rb'
434
+
435
+ # Offense count: 2
250
436
  # This cop supports safe autocorrection (--autocorrect).
251
437
  Style/ComparableClamp:
252
438
  Exclude:
253
439
  - 'lib/lutaml/cli/enhanced_formatter.rb'
254
440
 
441
+ # Offense count: 16
442
+ # This cop supports safe autocorrection (--autocorrect).
443
+ Style/MultilineIfModifier:
444
+ Exclude:
445
+ - 'lib/lutaml/cli/uml/build_command.rb'
446
+ - 'lib/lutaml/cli/uml/diagram_command.rb'
447
+ - 'lib/lutaml/uml_repository/index_builders/class_index.rb'
448
+ - 'lib/lutaml/uml_repository/index_builders/package_index.rb'
449
+ - 'lib/lutaml/uml_repository/repository_enhanced.rb'
450
+
451
+ # Offense count: 1
452
+ # This cop supports safe autocorrection (--autocorrect).
453
+ Style/MultilineTernaryOperator:
454
+ Exclude:
455
+ - 'lib/lutaml/uml_repository/validators/repository_validator.rb'
456
+
457
+ # Offense count: 2
458
+ # Configuration parameters: AllowedClasses.
459
+ Style/OneClassPerFile:
460
+ Exclude:
461
+ - 'lib/lutaml/cli.rb'
462
+ - 'lib/lutaml/qea.rb'
463
+
464
+ # Offense count: 1
255
465
  # This cop supports unsafe autocorrection (--autocorrect-all).
256
466
  Style/PartitionInsteadOfDoubleSelect:
257
467
  Exclude:
258
468
  - 'lib/lutaml/qea/factory/generalization_builder.rb'
259
469
 
470
+ # Offense count: 3
260
471
  # Configuration parameters: Max.
261
472
  Style/SafeNavigationChainLength:
262
473
  Exclude:
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "resource_registry"
4
-
5
3
  module Lutaml
6
4
  module Cli
7
5
  # ElementIdentifier parses and manages element references
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "io/console"
4
4
  require "table_tennis"
5
- require_relative "output_formatter"
6
5
 
7
6
  module Lutaml
8
7
  module Cli
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "command_base"
4
- require_relative "../enhanced_formatter"
5
-
6
3
  module Lutaml
7
4
  module Cli
8
5
  class InteractiveShell
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "command_base"
4
-
5
3
  module Lutaml
6
4
  module Cli
7
5
  class InteractiveShell
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "command_base"
4
- require_relative "../enhanced_formatter"
5
-
6
3
  module Lutaml
7
4
  module Cli
8
5
  class InteractiveShell
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "command_base"
4
- require_relative "../enhanced_formatter"
5
-
6
3
  module Lutaml
7
4
  module Cli
8
5
  class InteractiveShell
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "command_base"
4
- require_relative "../enhanced_formatter"
5
-
6
3
  module Lutaml
7
4
  module Cli
8
5
  class InteractiveShell
@@ -2,18 +2,18 @@
2
2
 
3
3
  require "readline"
4
4
  require "pathname"
5
- require_relative "enhanced_formatter"
6
- require_relative "../uml_repository/repository"
7
- require_relative "interactive_shell/command_base"
8
- require_relative "interactive_shell/navigation_commands"
9
- require_relative "interactive_shell/query_commands"
10
- require_relative "interactive_shell/bookmark_commands"
11
- require_relative "interactive_shell/export_handler"
12
- require_relative "interactive_shell/help_display"
13
5
 
14
6
  module Lutaml
15
7
  module Cli
16
8
  class InteractiveShell
9
+ autoload :CommandBase, "lutaml/cli/interactive_shell/command_base"
10
+ autoload :NavigationCommands,
11
+ "lutaml/cli/interactive_shell/navigation_commands"
12
+ autoload :QueryCommands, "lutaml/cli/interactive_shell/query_commands"
13
+ autoload :BookmarkCommands,
14
+ "lutaml/cli/interactive_shell/bookmark_commands"
15
+ autoload :ExportHandler, "lutaml/cli/interactive_shell/export_handler"
16
+ autoload :HelpDisplay, "lutaml/cli/interactive_shell/help_display"
17
17
  HISTORY_FILE = File.expand_path("~/.lutaml-xmi-history")
18
18
  MAX_HISTORY = 1000
19
19
 
@@ -2,12 +2,6 @@
2
2
 
3
3
  require "thor"
4
4
  require "pathname"
5
- require_relative "../formatter"
6
- require_relative "../uml/has_attributes"
7
- require_relative "../uml/parsers/attribute"
8
- require_relative "../uml/parsers/dsl"
9
- require_relative "../uml/parsers/yaml"
10
- require_relative "../express/parsers/exp"
11
5
 
12
6
  module Lutaml
13
7
  module Cli
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../output_formatter"
4
- require_relative "../../uml_repository"
5
- require_relative "../../uml_repository/package_metadata"
6
-
7
3
  module Lutaml
8
4
  module Cli
9
5
  module Uml
@@ -162,7 +158,6 @@ module Lutaml
162
158
 
163
159
  def parse_source(model_path, is_qea)
164
160
  if is_qea
165
- require_relative "../../qea"
166
161
  parse_qea_with_validation(model_path)
167
162
  else
168
163
  OutputFormatter.progress("Parsing XMI file")
@@ -282,7 +277,8 @@ module Lutaml
282
277
 
283
278
  if result.warnings.any?
284
279
  puts ""
285
- display_messages(result.warnings, "Validation warnings", :warning, limit)
280
+ display_messages(result.warnings, "Validation warnings", :warning,
281
+ limit)
286
282
  end
287
283
 
288
284
  if result.errors.any?
@@ -327,8 +323,6 @@ module Lutaml
327
323
  end
328
324
 
329
325
  def parse_qea_with_validation(qea_path)
330
- require_relative "../../qea"
331
-
332
326
  if options[:validate]
333
327
  puts OutputFormatter.colorize(
334
328
  "⋯ Parsing QEA file with validation...", :cyan
@@ -351,7 +345,6 @@ module Lutaml
351
345
  def parse_qea_with_progress(qea_path) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
352
346
  puts OutputFormatter.colorize("⋯ Parsing QEA file...", :cyan)
353
347
 
354
- require_relative "../../qea/services/database_loader"
355
348
  loader = Lutaml::Qea::Services::DatabaseLoader.new(qea_path)
356
349
 
357
350
  current_table = nil
@@ -372,7 +365,6 @@ module Lutaml
372
365
  print " ⋯ Transforming to UML..."
373
366
  $stdout.flush
374
367
 
375
- require_relative "../../qea/factory/ea_to_uml_factory"
376
368
  factory = Lutaml::Qea::Factory::EaToUmlFactory.new(database)
377
369
  document = factory.create_document
378
370
 
@@ -394,9 +386,6 @@ module Lutaml
394
386
  return
395
387
  end
396
388
 
397
- require_relative "../../qea/validation/formatters/text_formatter"
398
- require_relative "../../qea/validation/formatters/json_formatter"
399
-
400
389
  formatter_class = case options[:validation_format]
401
390
  when "json"
402
391
  Lutaml::Qea::Validation::Formatters::JsonFormatter
@@ -408,7 +397,10 @@ module Lutaml
408
397
  result: validation_result,
409
398
  limit: options[:limit_errors],
410
399
  }
411
- formatter_options[:color] = true if options[:validation_format] == "text"
400
+ if options[:validation_format] == "text"
401
+ formatter_options[:color] =
402
+ true
403
+ end
412
404
 
413
405
  formatter = formatter_class.new(**formatter_options)
414
406
  puts formatter.format
@@ -420,7 +412,8 @@ module Lutaml
420
412
  puts ""
421
413
 
422
414
  validation_details.each do |detail|
423
- puts OutputFormatter.colorize("Class: #{detail[:class_name]}", :cyan)
415
+ puts OutputFormatter.colorize("Class: #{detail[:class_name]}",
416
+ :cyan)
424
417
 
425
418
  detail[:attributes].each do |attr_detail|
426
419
  symbol = if attr_detail[:valid]
@@ -441,7 +434,9 @@ module Lutaml
441
434
  end
442
435
 
443
436
  def display_unresolved_types(external_references) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
444
- unique_types = external_references.map { |ref| ref[:referenced_type] }.uniq.sort
437
+ unique_types = external_references.map do |ref|
438
+ ref[:referenced_type]
439
+ end.uniq.sort
445
440
  return if unique_types.empty?
446
441
 
447
442
  puts ""