metrixplusplus / metrixplusplus

Metrix++ is an extendable tool for code metrics collection and analysis.
https://metrixplusplus.github.io
MIT License
76 stars 28 forks source link

Metrix++ report format similar to Radon or gocyclop? #51

Open huornlmj opened 2 years ago

huornlmj commented 2 years ago

Can Metrix++ report in the same way that radon (Python CC tool) and gocyclop (Go CC tool) does? Specifically, break down the files and functions and their scores. Example ( a portion of pyyaml CC as per the radon tool):

lib/yaml/resolver.py
    M 38:4 BaseResolver.add_path_resolver - C (19)
    M 120:4 BaseResolver.check_resolver_prefix - C (16)
    M 143:4 BaseResolver.resolve - C (12)
    C 12:0 BaseResolver - B (10)
    M 91:4 BaseResolver.descend_resolver - B (8)
lib/yaml/emitter.py
    M 626:4 Emitter.analyze_scalar - F (46)
    M 854:4 Emitter.write_single_quoted - D (26)
    M 926:4 Emitter.write_double_quoted - D (25)
    M 991:4 Emitter.write_folded - D (24)
    M 494:4 Emitter.choose_scalar_style - D (23)
    M 1080:4 Emitter.write_plain - D (22)
    M 580:4 Emitter.prepare_tag - C (18)
    M 178:4 Emitter.expect_document_start - C (17)
    M 469:4 Emitter.process_tag - C (17)
    M 437:4 Emitter.check_simple_key - C (15)
    M 1045:4 Emitter.write_literal - C (15)
    M 232:4 Emitter.expect_node - C (14)
    M 557:4 Emitter.prepare_tag_prefix - C (11)
    M 545:4 Emitter.prepare_tag_handle - B (9)
    C 31:0 Emitter - B (8)
    M 814:4 Emitter.write_indent - B (8)
    M 333:4 Emitter.expect_flow_mapping_key - B (7)
    M 430:4 Emitter.check_empty_document - B (7)
    M 515:4 Emitter.process_scalar - B (7)
    M 616:4 Emitter.prepare_anchor - B (7)
avkonst commented 2 years ago

The project is community driven. You are welcome to contribute new plugin which exports data in the required format. See recently somebody contributed prometheus exporter. Maybe yours is similar.

On Mon, May 9, 2022 at 9:31 PM Jason Culligan @.***> wrote:

Can Metrix++ report in the same way that radon (Python CC tool) and gocyclop (Go CC tool) does? Specifically, break down the files and functions and their scores. Example ( a portion of pyyaml CC as per the radon tool):

lib/yaml/resolver.py M 38:4 BaseResolver.add_path_resolver - C (19) M 120:4 BaseResolver.check_resolver_prefix - C (16) M 143:4 BaseResolver.resolve - C (12) C 12:0 BaseResolver - B (10) M 91:4 BaseResolver.descend_resolver - B (8) lib/yaml/emitter.py M 626:4 Emitter.analyze_scalar - F (46) M 854:4 Emitter.write_single_quoted - D (26) M 926:4 Emitter.write_double_quoted - D (25) M 991:4 Emitter.write_folded - D (24) M 494:4 Emitter.choose_scalar_style - D (23) M 1080:4 Emitter.write_plain - D (22) M 580:4 Emitter.prepare_tag - C (18) M 178:4 Emitter.expect_document_start - C (17) M 469:4 Emitter.process_tag - C (17) M 437:4 Emitter.check_simple_key - C (15) M 1045:4 Emitter.write_literal - C (15) M 232:4 Emitter.expect_node - C (14) M 557:4 Emitter.prepare_tag_prefix - C (11) M 545:4 Emitter.prepare_tag_handle - B (9) C 31:0 Emitter - B (8) M 814:4 Emitter.write_indent - B (8) M 333:4 Emitter.expect_flow_mapping_key - B (7) M 430:4 Emitter.check_empty_document - B (7) M 515:4 Emitter.process_scalar - B (7) M 616:4 Emitter.prepare_anchor - B (7)

— Reply to this email directly, view it on GitHub https://github.com/metrixplusplus/metrixplusplus/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JSVIKVRH6MDMJEZAQ2R3VJDLOLANCNFSM5VNUVUQA . You are receiving this because you are subscribed to this thread.Message ID: @.***>