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.
- Sonar configured with LDAP and SCM Activity plugins
-
Rename
app/config/ldap-aliases-template.json
toapp/config/ldap-aliases.json
[{"smartin":["S\u00e9bastien M","[email protected]"]},{"bdupont":["Bernard","[email protected]"]}]
smartin
andbdupont
are Ldap user identifiers.
User identifiers are followed by the list of SCM aliases used by the user (cf .gitconfig file). -
Configure
sonar-review-creator.ini
-
Run sonar-review-creator :
php runSonarReviewCreator.php
To run phpUnit tests, first install and configure composer.json
-
curl -s http://getcomposer.org/installer | php
-
php composer.phar install
Then run tools/composer/bin/phpunit -c test/phpunit/phpunit.xml test/phpunit/
cf. wiki : https://github.com/tomslabs/sonar-review-creator/wiki/sonar-review-creator