A command-line tool to make sonar execution, scans and setups easier
- User creation
- Project creation
- QualityGate creation
- Run sonarqube via docker
- Wait for sonar to be ready
- Run sonar-scanner via docker
├── requirements-dev.txt
├── requirements.txt
└── src
└── sonarcli.py
- python
- golang
- javascript
Before the installation make sure that you already have created the files bellow in your project
git clone git@github.com/aleroxac/sonarcli.git && cd sonarcli
make install
cd sonarcli/examples/python
make install
make test
sed -i "s|<source>${PWD}/src<\/source>|<source>/usr/src/src</source>|g" coverage.xml
sonar run
sonar wait
sonar setup sample-app | jq > sonar.json
sonar scan
make uninstall