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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop_todo.yml +216 -5
- data/lib/lutaml/cli/element_identifier.rb +0 -2
- data/lib/lutaml/cli/enhanced_formatter.rb +0 -1
- data/lib/lutaml/cli/interactive_shell/bookmark_commands.rb +0 -3
- data/lib/lutaml/cli/interactive_shell/export_handler.rb +0 -2
- data/lib/lutaml/cli/interactive_shell/help_display.rb +0 -3
- data/lib/lutaml/cli/interactive_shell/navigation_commands.rb +0 -3
- data/lib/lutaml/cli/interactive_shell/query_commands.rb +0 -3
- data/lib/lutaml/cli/interactive_shell.rb +8 -8
- data/lib/lutaml/cli/lml_commands.rb +0 -6
- data/lib/lutaml/cli/uml/build_command.rb +11 -16
- data/lib/lutaml/cli/uml/diagram_command.rb +27 -9
- data/lib/lutaml/cli/uml/export_command.rb +0 -1
- data/lib/lutaml/cli/uml/find_command.rb +0 -3
- data/lib/lutaml/cli/uml/info_command.rb +0 -1
- data/lib/lutaml/cli/uml/inspect_command.rb +0 -3
- data/lib/lutaml/cli/uml/ls_command.rb +0 -3
- data/lib/lutaml/cli/uml/repl_command.rb +0 -1
- data/lib/lutaml/cli/uml/search_command.rb +0 -3
- data/lib/lutaml/cli/uml/serve_command.rb +0 -1
- data/lib/lutaml/cli/uml/shared_helpers.rb +0 -2
- data/lib/lutaml/cli/uml/spa_command.rb +0 -5
- data/lib/lutaml/cli/uml/stats_command.rb +0 -3
- data/lib/lutaml/cli/uml/tree_command.rb +0 -3
- data/lib/lutaml/cli/uml/validate_command.rb +0 -5
- data/lib/lutaml/cli/uml/verify_command.rb +0 -3
- data/lib/lutaml/cli/uml.rb +24 -0
- data/lib/lutaml/cli/uml_commands.rb +0 -18
- data/lib/lutaml/cli.rb +14 -2
- data/lib/lutaml/converter/xmi_to_uml.rb +2 -2
- data/lib/lutaml/converter/xmi_to_uml_generalization.rb +1 -1
- data/lib/lutaml/converter.rb +10 -0
- data/lib/lutaml/ea/diagram/element_renderers/class_renderer.rb +0 -2
- data/lib/lutaml/ea/diagram/element_renderers/connector_renderer.rb +0 -2
- data/lib/lutaml/ea/diagram/element_renderers/package_renderer.rb +0 -2
- data/lib/lutaml/ea/diagram/element_renderers.rb +18 -0
- data/lib/lutaml/ea/diagram/extractor.rb +0 -2
- data/lib/lutaml/ea/diagram/layout_engine.rb +0 -2
- data/lib/lutaml/ea/diagram/path_builder.rb +0 -2
- data/lib/lutaml/ea/diagram/style_resolver.rb +0 -3
- data/lib/lutaml/ea/diagram/svg_renderer.rb +0 -6
- data/lib/lutaml/ea/diagram.rb +10 -25
- data/lib/lutaml/ea.rb +7 -0
- data/lib/lutaml/formatter/base.rb +0 -3
- data/lib/lutaml/formatter/graphviz.rb +0 -2
- data/lib/lutaml/layout/graph_viz_engine.rb +0 -1
- data/lib/lutaml/model_transformations/format_registry.rb +0 -2
- data/lib/lutaml/model_transformations/parsers/qea_parser.rb +0 -3
- data/lib/lutaml/model_transformations/parsers/xmi_parser.rb +0 -3
- data/lib/lutaml/model_transformations/transformation_engine.rb +0 -4
- data/lib/lutaml/qea/benchmark.rb +0 -2
- data/lib/lutaml/qea/database.rb +53 -3
- data/lib/lutaml/qea/factory/association_builder.rb +0 -2
- data/lib/lutaml/qea/factory/association_transformer.rb +0 -4
- data/lib/lutaml/qea/factory/attribute_tag_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/attribute_transformer.rb +0 -4
- data/lib/lutaml/qea/factory/class_transformer.rb +0 -11
- data/lib/lutaml/qea/factory/constraint_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/data_type_transformer.rb +0 -8
- data/lib/lutaml/qea/factory/diagram_transformer.rb +0 -5
- data/lib/lutaml/qea/factory/document_builder.rb +0 -2
- data/lib/lutaml/qea/factory/ea_to_uml_factory.rb +0 -7
- data/lib/lutaml/qea/factory/enum_transformer.rb +0 -5
- data/lib/lutaml/qea/factory/generalization_builder.rb +0 -5
- data/lib/lutaml/qea/factory/generalization_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/instance_transformer.rb +0 -4
- data/lib/lutaml/qea/factory/object_property_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/operation_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/package_transformer.rb +0 -7
- data/lib/lutaml/qea/factory/tagged_value_transformer.rb +0 -3
- data/lib/lutaml/qea/factory/transformer_registry.rb +0 -8
- data/lib/lutaml/qea/factory.rb +37 -0
- data/lib/lutaml/qea/infrastructure.rb +12 -0
- data/lib/lutaml/qea/models/ea_attribute.rb +0 -2
- data/lib/lutaml/qea/models/ea_attribute_tag.rb +0 -2
- data/lib/lutaml/qea/models/ea_complexity_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_connector.rb +0 -2
- data/lib/lutaml/qea/models/ea_connector_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_constraint_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_datatype.rb +0 -2
- data/lib/lutaml/qea/models/ea_diagram.rb +0 -2
- data/lib/lutaml/qea/models/ea_diagram_link.rb +0 -2
- data/lib/lutaml/qea/models/ea_diagram_object.rb +0 -2
- data/lib/lutaml/qea/models/ea_diagram_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_document.rb +0 -2
- data/lib/lutaml/qea/models/ea_object.rb +0 -2
- data/lib/lutaml/qea/models/ea_object_constraint.rb +0 -2
- data/lib/lutaml/qea/models/ea_object_property.rb +0 -2
- data/lib/lutaml/qea/models/ea_object_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_operation.rb +0 -2
- data/lib/lutaml/qea/models/ea_operation_param.rb +0 -2
- data/lib/lutaml/qea/models/ea_package.rb +0 -2
- data/lib/lutaml/qea/models/ea_script.rb +0 -2
- data/lib/lutaml/qea/models/ea_status_type.rb +0 -2
- data/lib/lutaml/qea/models/ea_stereotype.rb +0 -2
- data/lib/lutaml/qea/models/ea_tagged_value.rb +0 -2
- data/lib/lutaml/qea/models/ea_xref.rb +0 -2
- data/lib/lutaml/qea/models.rb +35 -0
- data/lib/lutaml/qea/parser.rb +0 -4
- data/lib/lutaml/qea/repositories/object_repository.rb +0 -2
- data/lib/lutaml/qea/repositories.rb +10 -0
- data/lib/lutaml/qea/services/database_loader.rb +0 -29
- data/lib/lutaml/qea/services.rb +10 -0
- data/lib/lutaml/qea/validation/association_validator.rb +0 -2
- data/lib/lutaml/qea/validation/attribute_validator.rb +0 -2
- data/lib/lutaml/qea/validation/base_validator.rb +0 -2
- data/lib/lutaml/qea/validation/class_validator.rb +0 -2
- data/lib/lutaml/qea/validation/database/circular_reference_validator.rb +0 -2
- data/lib/lutaml/qea/validation/database/orphan_validator.rb +0 -2
- data/lib/lutaml/qea/validation/database/referential_integrity_validator.rb +0 -2
- data/lib/lutaml/qea/validation/database.rb +10 -0
- data/lib/lutaml/qea/validation/diagram_validator.rb +0 -2
- data/lib/lutaml/qea/validation/operation_validator.rb +0 -2
- data/lib/lutaml/qea/validation/package_validator.rb +0 -2
- data/lib/lutaml/qea/validation/validation_engine.rb +0 -14
- data/lib/lutaml/qea/validation/validation_result.rb +0 -2
- data/lib/lutaml/qea/validation.rb +27 -0
- data/lib/lutaml/qea/verification/document_verifier.rb +0 -7
- data/lib/lutaml/qea/verification.rb +14 -0
- data/lib/lutaml/qea.rb +13 -14
- data/lib/lutaml/uml/association.rb +0 -4
- data/lib/lutaml/uml/class.rb +0 -8
- data/lib/lutaml/uml/classifier.rb +0 -4
- data/lib/lutaml/uml/data_type.rb +0 -6
- data/lib/lutaml/uml/diagram.rb +0 -4
- data/lib/lutaml/uml/document.rb +0 -12
- data/lib/lutaml/uml/enum.rb +0 -4
- data/lib/lutaml/uml/generalization.rb +0 -2
- data/lib/lutaml/uml/node/attribute.rb +0 -4
- data/lib/lutaml/uml/node/base.rb +0 -2
- data/lib/lutaml/uml/node/class_node.rb +0 -7
- data/lib/lutaml/uml/node/class_relationship.rb +0 -3
- data/lib/lutaml/uml/node/document.rb +0 -3
- data/lib/lutaml/uml/node/method_argument.rb +0 -4
- data/lib/lutaml/uml/node/operation.rb +0 -4
- data/lib/lutaml/uml/node/relationship.rb +0 -4
- data/lib/lutaml/uml/operation.rb +0 -2
- data/lib/lutaml/uml/package.rb +0 -6
- data/lib/lutaml/uml/parsers/dsl.rb +0 -4
- data/lib/lutaml/uml/qualified_name.rb +0 -2
- data/lib/lutaml/uml/top_element.rb +0 -3
- data/lib/lutaml/uml/validation/document_structure_validator.rb +0 -2
- data/lib/lutaml/uml.rb +26 -11
- data/lib/lutaml/uml_repository/exporters/json_exporter.rb +0 -1
- data/lib/lutaml/uml_repository/exporters/markdown/formatting.rb +0 -2
- data/lib/lutaml/uml_repository/exporters/markdown.rb +20 -0
- data/lib/lutaml/uml_repository/exporters/markdown_exporter.rb +0 -7
- data/lib/lutaml/uml_repository/index_builder.rb +4 -6
- data/lib/lutaml/uml_repository/index_builders/association_index.rb +113 -111
- data/lib/lutaml/uml_repository/index_builders/class_index.rb +86 -78
- data/lib/lutaml/uml_repository/index_builders/package_index.rb +45 -40
- data/lib/lutaml/uml_repository/index_builders.rb +13 -0
- data/lib/lutaml/uml_repository/lazy_repository.rb +0 -2
- data/lib/lutaml/uml_repository/package_exporter.rb +0 -1
- data/lib/lutaml/uml_repository/package_loader.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/association_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/attribute_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/class_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/datatype_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/diagram_presenter.rb +0 -5
- data/lib/lutaml/uml_repository/presenters/enum_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/package_presenter.rb +0 -3
- data/lib/lutaml/uml_repository/presenters/presenter_factory.rb +0 -2
- data/lib/lutaml/uml_repository/queries/association_query.rb +0 -3
- data/lib/lutaml/uml_repository/queries/class_query.rb +0 -4
- data/lib/lutaml/uml_repository/queries/diagram_query.rb +0 -3
- data/lib/lutaml/uml_repository/queries/inheritance_query.rb +0 -3
- data/lib/lutaml/uml_repository/queries/package_query.rb +0 -3
- data/lib/lutaml/uml_repository/queries/search_query.rb +16 -9
- data/lib/lutaml/uml_repository/query_dsl/conditions/block_condition.rb +0 -2
- data/lib/lutaml/uml_repository/query_dsl/conditions/hash_condition.rb +0 -2
- data/lib/lutaml/uml_repository/query_dsl/conditions/package_condition.rb +0 -3
- data/lib/lutaml/uml_repository/query_dsl/query_builder.rb +0 -6
- data/lib/lutaml/uml_repository/repository/loader.rb +0 -3
- data/lib/lutaml/uml_repository/repository.rb +3 -21
- data/lib/lutaml/uml_repository/repository_enhanced.rb +10 -6
- data/lib/lutaml/uml_repository/static_site/association_serialization.rb +0 -5
- data/lib/lutaml/uml_repository/static_site/data_transformer.rb +0 -14
- data/lib/lutaml/uml_repository/static_site/generator.rb +0 -4
- data/lib/lutaml/uml_repository/static_site/models/spa_association.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_association_end.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_attribute.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_cardinality.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_class.rb +0 -5
- data/lib/lutaml/uml_repository/static_site/models/spa_diagram.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_document.rb +0 -11
- data/lib/lutaml/uml_repository/static_site/models/spa_inherited_association.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_inherited_attribute.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_literal.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_metadata.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_operation.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_package.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_package_tree_node.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/models/spa_parameter.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_search_entry.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_statistics.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models/spa_tree_class_ref.rb +0 -2
- data/lib/lutaml/uml_repository/static_site/models.rb +46 -0
- data/lib/lutaml/uml_repository/static_site/search_index_builder.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/serializers/attribute_serializer.rb +0 -4
- data/lib/lutaml/uml_repository/static_site/serializers/class_serializer.rb +0 -4
- data/lib/lutaml/uml_repository/static_site/serializers/diagram_serializer.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/serializers/inheritance_resolver.rb +0 -7
- data/lib/lutaml/uml_repository/static_site/serializers/metadata_builder.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/serializers/operation_serializer.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/serializers/package_serializer.rb +0 -3
- data/lib/lutaml/uml_repository/static_site/serializers/package_tree_builder.rb +0 -4
- data/lib/lutaml/uml_repository/static_site/serializers.rb +26 -0
- data/lib/lutaml/uml_repository/static_site.rb +12 -6
- data/lib/lutaml/uml_repository/statistics_calculator.rb +0 -2
- data/lib/lutaml/uml_repository/validators/repository_validator.rb +6 -3
- data/lib/lutaml/uml_repository/web_ui/app.rb +0 -1
- data/lib/lutaml/uml_repository.rb +21 -1
- data/lib/lutaml/version.rb +1 -1
- data/lib/lutaml/xmi/parsers/xmi_base.rb +3 -2
- data/lib/lutaml/xmi/parsers/xmi_class_members.rb +1 -1
- data/lib/lutaml/xmi/parsers/xmi_connector.rb +1 -1
- data/lib/lutaml/xmi/parsers/xml.rb +0 -2
- data/lib/lutaml/xmi/xmi_lookup_service.rb +0 -2
- data/lib/lutaml/xmi.rb +5 -1
- data/lib/lutaml.rb +11 -9
- metadata +17 -5
- data/lib/lutaml/qea/lookup_indexes.rb +0 -72
- data/lib/lutaml/xml/parsers/xml.rb +0 -45
- data/lib/lutaml/xml/parsers/xsd.rb +0 -35
- data/lib/lutaml/xml.rb +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c53820c1a0daa57dc4a07ee45bdd249600b22a194d47f0e011fcc14147d15fd
|
|
4
|
+
data.tar.gz: d03fce90025ce62a4715d187b8e723dd63cb8a768a7e8e016bf4d9160a0ba2dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cebc1ecb62b6a0daa11b21206995fac13a9a45d4ef9707ed248e97ff20757ee6c1a59216b96b00e2fb568bb48966a4660f03a171bc97183b343003796ea1f895
|
|
7
|
+
data.tar.gz: 0b3280443cd693c733f82a4a43e6b68ba4276bfabf9400d9dddd098e918315ec9bdcdec4138ffd57e0f72d2509b2f388d4de4262e0a6cf24b541f6a2bf89520c
|
data/.gitignore
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,21 +1,150 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config
|
|
3
|
-
# on 2026-05-13
|
|
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:
|
|
@@ -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,
|
|
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
|
-
|
|
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]}",
|
|
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
|
|
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 ""
|