Skip to content

sonarqube-cli - Golang Example of using the CLI to consume the sonarcloud API

License

Notifications You must be signed in to change notification settings

evertonvps/sonarqube-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonarqube-cli

Example of using the CLI to consume the sonarcloud API

$ sonarqube -h
Usage:
  sonarqube [command]

Available Commands:
  completion      Generate the autocompletion script for the specified shell
  help            Help about any command
  project         Manager Sonar Project
  quality-gate    Associate a project to a quality gate.
  quality-profile Associate a project with a quality profile.
  user-token      Generate a user access token.

Flags:
  -x, --debug     Debugmode (default: false)
  -h, --help      help for sonarqube
  -v, --version   version for sonarqube

Use "sonarqube [command] --help" for more information about a command.

I'm using Cobra

To start using sonarqube-cli

git clone https://github.com/evertonvps/sonarqube-cli
cd sonarqube-cli
make deploy

Roadmap

  • Create a project.
  • Associate a project to a quality gate.
  • Associate a project with a quality profile.
  • Generate a user access token.
  • Revoke a user access token.
  • Set tags on a project..
  • Generate badge for project's measure as an SVG.
  • Generate badge for project's quality gate as an SVG.
  • Delete a non-main branch of a project.

About

sonarqube-cli - Golang Example of using the CLI to consume the sonarcloud API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages