0.1.1 • Published 3 years ago

sonar-validator v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Sonar Validator

This NPM module is intended to be run after Sonar-Scanner to evaluate the status of the quality-gate way.

How run

Download the module

npm i sonar-validator

Script in the package.json

Add a new sonar script that will run the validator

package.json
{
    ...
    "scripts": {
        ...
        "sonar": "node node_modules/sonar-validator/"
    }
    ...
}

Environment variable

This module uses following environment vairables

VariableUsageRequired/Default
SONARQUBE_URLURL of the SonarQube serverYes / N/A
SONAR_LOGINSonarQube TokenYes / N/A
SKIP_SONARShould the Sonar validation be skippedNo / false

Output

This module will evaluate the status of the quality gate way and will return an error if the gate has failed.

Sonar Report ---------------

New Reliability Rating OK
New Security Rating OK
New Maintainability Rating OK
New Coverage ERROR
New Duplicated Lines Density OK

Quality Gateway FAILED
0.1.1

3 years ago

0.1.0

3 years ago