sonarqube

command
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 10 Imported by: 0

README

Sonarqube integration

Contents

Export command

Integrations JSON:
{
	"name":"sonarqube",
	"config": {
		"api_token": API_TOKEN,               // required
		"url":       SONARQUBE_URL_ENDPOINT,  // required
		"metrics": [                          // optional
				"complexity","code_smells",
				"new_code_smells","sqale_rating",
				"reliability_rating","security_rating",
				"coverage","new_coverage",
				"test_success_density","new_technical_debt"
		]
	}
}
----------
go run . export \
    --agent-config-json='{"customer_id":"customer_id"}' \
    --integrations-json='[{"name":"sonarqube", "config":{"api_token":API_TOKEN, "url":SONARQUBE_URL_ENDPOINT,"metrics":METRICS_ARRAY}}]' \
    --pinpoint-root=$HOME/.pinpoint/next-sonarqube

Running tests

To run the tests you'll need to enable it with the PP_TEST_SONARQUBE flag set to "1", you'll also need the api key and the api url

PP_TEST_SONARQUBE_URL=https://api-url PP_TEST_SONARQUBE_APIKEY=1234567890 PP_TEST_SONARQUBE=1 go test github.com/pinpt/agent/integrations/sonarqube...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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