Skip to content

Files

Latest commit

488800a · Dec 5, 2011

History

History
19 lines (11 loc) · 868 Bytes

File metadata and controls

19 lines (11 loc) · 868 Bytes

Sonar PHP_CodeSniffer Rules Extension for Symfony2 Standards

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.

Installation

  1. Simply copy the rules.xml at this path:

     $SONAR_HOME/extensions/rules/php_codesniffer_rules/rules.xml
    
  2. Restart your sonar instance.

  3. 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.