sonarqube-cli

module
v0.0.0-...-c142cca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: GPL-3.0

README

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.

Directories

Path Synopsis
internal
cmd
di

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL