using codesniffer with pear standard. I got over 20tsd errors cause of line indents. I use tab-stops for indenting. I try to disable that check but I failed.
I removed the last rule from the generic standards in the ruleset.xml for the pear standard. Yet the indenting is still considered an error.
How do I remove the indention checks completely for the pear standard?
It should work, so you should definitely try to understand why tweaking your ruleset.xml
file doesn't work in your environment, otherwise you'll be missing many features from CodeSniffer.
As a reminder, here are the two options:
Either you explicitly exclude the sniff in your ruleset :
<rule ref="PEAR">
<exclude name="PEAR.WhiteSpace.ScopeIndent" />
</rule>
Or you mute down a specific error message, resulting in the rule actually being executed for potential other error messages :
<rule ref="PEAR.WhiteSpace.ScopeIndent.Incorrect">
<severity>0</severity>
</rule>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With