CodeCharta is a tool to visualize software quality. It allows you to import and combine metrics from various sources like SonarQube, Svn, Git or directly from your source code. The visualization makes the quality of a code base tangible and can be used to gain insights and communicate with stakeholders.
Export data from SecObserve
When showing a product, there is an
Export button. When clicking it, it shows a menu including an option to export the metrics about observations of this product to CodeCharta:
This export produces a CSV file with severity metrics for all open observations that have a source file as an origin.
Process data for CodeCharta
The CSV file needs to be converted to CodeCharta's JSON format. First the analysis tools of CodeCharta need to be installed. Then the exported metrics are converted like this:
This produces the file
secobserve_codecharta_metrics.cc.json.gz. This file can be visualized by CodeCharta, but contains only the source files with vulnerabilities.
When SonarQube is used, the export from SonarQube will include an additional node with the id of the project, that needs to be removed:
Now the results from SonarQube and SecObserve can be merged:
Visualize data in CodeCharta
The resulting file
secobserve.cc.json.gz can now be visualized using https://maibornwolff.github.io/codecharta/visualization/app/index.html. These SecObserve metrics are included: