Skip to content

Latest commit

 

History

History
105 lines (69 loc) · 2.07 KB

README.md

File metadata and controls

105 lines (69 loc) · 2.07 KB

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