Skip to content

A command-line tool to make sonar execution, scans and setups easier

License

Notifications You must be signed in to change notification settings

aleroxac/sonarcli

Repository files navigation

Python Docker SonarQube

GitHub commit activity

sonarcli

A command-line tool to make sonar execution, scans and setups easier

Table of Content

Fatures

  • User creation
  • Project creation
  • QualityGate creation
  • Run sonarqube via docker
  • Wait for sonar to be ready
  • Run sonar-scanner via docker

Demo Results

Quality Gate

qualitygate

New Code

new-code

Overall Code

overall-code

Project Structure

├── requirements-dev.txt
├── requirements.txt
└── src
    └── sonarcli.py

Languages Supported

  • python
  • golang
  • javascript

Getting started

Before the installation make sure that you already have created the files bellow in your project

Installation

git clone git@github.com/aleroxac/sonarcli.git && cd sonarcli
make install

Use mode

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

Uninstallation

make uninstall

About

A command-line tool to make sonar execution, scans and setups easier

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published