Generates a csv file reflecting sonarqube's project dashboard.
python report.py <filename> [<tagname>]
Queries all projects available. Filter using tagname
(s) if you just need a limited view.
Generates csv report at filename
location - overwrites existing files.
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
SONARQUBE_API_BASE
base path to api - e.g. https://sonarqube.example.com/api/
SONARQUBE_API_USERTOKEN
user token used for basic authentication. See https://docs.sonarqube.org/latest/user-guide/user-token/ for details.
Every line represents a project. Columns show the project metrics using the keys explained here: https://docs.sonarqube.org/latest/user-guide/metric-definitions/
Character ranges A to F are transformed to numeric values (A = 1, B = 2, ...).