Details
Description
internal rules.xml for codesniffer or phpmd must be updated with the following example:
<rule key="Generic.Files.LineEndings.InvalidEOLChar" priority="MAJOR"> <category name="Maintainability"/> <name>LineEndingsInvalidEOLChar</name> <configKey>rulesets/LineEndings</configKey> <description><![CDATA[End of line character is invalid; expected "%s" but found "%s]]></description> <param> <key>eolChar</key> <description>End of line character</description> <defaultValue><![CDATA[\n]]></defaultValue> </param> </rule>
You can have multiple <param> tags for a rule.
For the moment, it's a long time job. However, user can override the internal configuration with its own by following steps on this page:
http://docs.codehaus.org/display/SONAR/Extend+coding+rules
Issue Links
- is depended upon by
-
SONARPLUGINS-1507
Improve the definition of the CodeSniffer rule repository
-
PHPMD repository has already been cleaned up and improved, the big work is now on the PHPCS rule repository.