This project is designed to analyze code complexity and churn, and generate visual plots based on the analysis. It uses SonarCloud for code quality checks and Python for data processing and visualization.
- Python 3.x
- pip (Python package installer)
- SonarCloud account and project
-
Run the
run.sh
script with the required arguments:./run.sh <local_repo_folder> <sonarcloud_project_name> <sonarcloud_jwt_token>
<local_repo_folder>
: The local folder of the repository to verify.<sonarcloud_project_name>
: The name of the project on SonarCloud.<sonarcloud_jwt_token>
: The JWT session token from SonarCloud.
-
The script will:
- Run
complexity.sh
andchurn.sh
scripts. - Check if
complexity.json
andchurn.csv
are generated. - Create and activate a virtual environment if it does not exist.
- Install the required Python packages.
- Run the
plot.py
script to generate and save the plot.
- Run
-
Clone the repository:
git clone <repository_url> cd <repository_folder>
-
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate
-
Install the required Python packages:
pip install -r requirements.txt
This project is licensed under the MIT License. See the LICENSE
file for more details.