During the test in sonar i just wanna some rules to be changed so i took a sample from
http://docs.codehaus.org/display/SONAR/Extend+PHP+coding+rules
and make a rule change in
scopeIndentIncorrect and it works . because they have given parameters which I have changed .
but now I want to change the
FunctionCallSignatureIndent
and want to pass a parameters for that
every result I made resulted in creating a new plugin so is there any other way to do it ?
<rule key="PEAR.Functions.FunctionCallSignature.Indent" priority="MAJOR">
<category name="Maintainability"/>
<name>CustomFunctionCallSignatureIndent</name>
<configKey>FUNCTION_CALL_SIGNATURE_INDENT</configKey>
<description><![CDATA[Multi-line function call not indented correctly; expected %s spaces but found %s]]></description>
<param>
<key>indent</key>
<description>The number of spaces code should be indented.</description>
<defaultValue>4</defaultValue>
</param>
This is the entry I made in rules.xml
No, you do not need to write a Sonar plugin for that. You just have to:
And then, after restarting Sonar, you should be able to customize this rule in Sonar Web UI.