Skip to content

Using SonarQube API, create and assign reviews for the violations created after the specified date.

License

Notifications You must be signed in to change notification settings

tomslabs/sonar-review-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar-review-creator

Php project using SonarQube API to create and assign reviews for the Sonar violations created after the specified date.
Works with Git and Svn projects.

Prerequisites

  • Sonar configured with LDAP and SCM Activity plugins

step by step

  1. Rename app/config/ldap-aliases-template.json to app/config/ldap-aliases.json

    [{"smartin":["S\u00e9bastien M","[email protected]"]},{"bdupont":["Bernard","[email protected]"]}]
    smartin and bdupont are Ldap user identifiers.
    User identifiers are followed by the list of SCM aliases used by the user (cf .gitconfig file).

  2. Configure sonar-review-creator.ini

  3. Run sonar-review-creator : php runSonarReviewCreator.php

phpUnit tests

To run phpUnit tests, first install and configure composer.json

  1. curl -s http://getcomposer.org/installer | php

  2. php composer.phar install

Then run tools/composer/bin/phpunit -c test/phpunit/phpunit.xml test/phpunit/

Example of how you can use sonar-review-creator

cf. wiki : https://github.com/tomslabs/sonar-review-creator/wiki/sonar-review-creator

About

Using SonarQube API, create and assign reviews for the violations created after the specified date.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages