ralfmaxxx / phpmd_variable_lifetime
There is no license information available for the latest version (0.1.0) of this package.
Deliver PHPMD variable lifetime rule
0.1.0
2016-07-13 20:18 UTC
Requires
- phpmd/phpmd: ^2.4
This package is auto-updated.
Last update: 2024-10-21 20:51:51 UTC
README
PHPMD Variable Lifetime Rule
How to use?
composer require "ralfmaxxx/phpmd_variable_lifetime"
And append this rule to phpmd.xml
using definition file rulesets/design.xml
:
<rule ref="{path}/rulesets/design.xml/LocalVariableLifetime" />
You can additionally set allowed lines interval parameter:
<rule ref="{path}/rulesets/design.xml/LocalVariableLifetime">
<properties>
<property name="allowedLinesInterval" value="5"/>
</properties>
</rule>