Answer the question
In order to leave comments, you need to log in
Why doesn't phpmd's own ruleset apply in phpstorm?
Hello!
I need to be able to name private variables with an underscore at the beginning. I understand that the "CamelCasePropertyName" rule and its "allow-underscore" parameter are suitable for this.
Added rule to ruleset:
<rule ref="rulesets/controversial.xml/CamelCasePropertyName">
<priority>1</priority>
<properties>
<property name="allow-underscore" value="true" />
</properties>
</rule>
phpmd ./components/View.php text ./build/phpmd.xml
phpmd ./components/View.php text ./build/phpmd.xml,controversial
View.php:17 The property $_pageCategory is not named in camelCase.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question