This extention adds the custom Symfony2 sniffs to the quality profile panel in Sonar.
It's based on the PHP_CodeSniffer ruleset provided by opensky.
It's follow the recommended sonar way to extends quality profile.
-
Simply copy the rules.xml at this path:
$SONAR_HOME/extensions/rules/php_codesniffer_rules/rules.xml
-
Restart your sonar instance.
-
Check the configuration > quality profile panel, search for PHP_CodeSniffer inactive rules and expand all the rules. Every rules with a key starting by Symfony2 should be present.