CodeQuality by Metrix++ 2:Folder


Visualize code quality metrics LoC (Lines of Code), CC (Cyclomatic Complexity) and resulting CCD (Cyclomatic Complexity Density) collected for your codebase by Metrix++ in Prometheus
Last updated: a year ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 0

Reviews: 0

  • CodeQuality by Metrix++ 2_Folder-1611099642875.png
    CodeQuality by Metrix++ 2_Folder-1611099642875.png
  • CodeQuality by Metrix++ concept.png
    CodeQuality by Metrix++ concept.png

This dashboard allows you to visualize code quality metrics

  1. LoC (Lines of Code)
  2. CC (Cyclomatic Complexity)
  3. and the resulting CCD (Cyclomatic Complexity Density), as division of CD by LoC

(all 3 horizontally in successive columns) collected for your codebase folders (C/C++, C# and Java) by Metrix++ in Prometheus. For each metric, 3 graphs are rendered vertically showing successively:

  1. total absolute for the current selection (codebase folders)
  2. distribution of the total 1. over the next level items (files)
  3. deviation over the time of the total 1. by next level items (files)

It is part of a set of 3 dashboards, linked for the sake of drilldown analysis:

  1. CodeQuality by Metrix++ 1:Overall
  2. CodeQuality by Metrix++ 2:Folder
  3. CodeQuality by Metrix++ 3:File

CodeQuality by Metrix++ 2:Folder is designed as second dashboard used during analysis, showing metrics at codebase folder level (selection) up to (scolling down to) the next level information about files, with support for drilldown to the next linked CodeQuality by Metrix++ 3:File.

First it requires you to put Metrix++ in place for your codebase (C/C++, C# and Java), (see also its github repo), and to setup a Prometheus instance scraping the output of the following commands:

  • python view --ll=ERROR --format=prometheus
  • python view --ll=ERROR --format=prometheus -- /home/mycodebase
  • python view --ll=ERROR --format=prometheus -- /home/mycodebase/src
  • python view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main
  • python view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main/java
  • python view --ll=ERROR --format=prometheus -- /home/mycodebase/src/main/java/
Get this dashboard: