Skip to content

C++ metrics are calculated multiple times for the same type #814

@barnabasdomozi

Description

@barnabasdomozi

Parsing the https://github.com/apache/xerces-c codebase, we can see that multiple metric values are calculated for the same type.

id astNodeId type value id astValue location_range_start_line location_range_start_column location_range_end_line location_range_end_column location_file entityHash symbolType astType visibleInSourceCode
57624 -1447835275113149951 3 5.0 -1447835275113149951 class FlagJanitor{ 29 20 65 2 -3870837121720064747 1489319374071080359 3 3 true
59633 6077859165859605263 5 0.6666666666666667 6077859165859605263 class FlagJanitor{ 29 20 65 2 -3870837121720064747 -5411956069294332888 3 3 true
59548 -1447835275113149951 5 1.0 -1447835275113149951 class FlagJanitor{ 29 20 65 2 -3870837121720064747 1489319374071080359 3 3 true
59641 6077859165859605263 6 0.8 6077859165859605263 class FlagJanitor{ 29 20 65 2 -3870837121720064747 -5411956069294332888 3 3 true
59549 -1447835275113149951 6 1.2 -1447835275113149951 class FlagJanitor{ 29 20 65 2 -3870837121720064747 1489319374071080359 3 3 true
60828 -1447835275113149951 7 0.0 -1447835275113149951 class FlagJanitor{ 29 20 65 2 -3870837121720064747 1489319374071080359 3 3 true
60691 6077859165859605263 7 0.0 6077859165859605263 class FlagJanitor{ 29 20 65 2 -3870837121720064747 -5411956069294332888 3 3 true
61796 6077859165859605263 8 0.0 6077859165859605263 class FlagJanitor{ 29 20 65 2 -3870837121720064747 -5411956069294332888 3 3 true
61782 -1447835275113149951 8 0.0 -1447835275113149951 class FlagJanitor{ 29 20 65 2 -3870837121720064747 1489319374071080359 3 3 true

The above table shows CppAstNodeMetrics table joined with CppAstNode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions