File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<rule ref =" rulesets/naming.xml" >
12
12
<exclude name =" ShortVariable" />
13
+ <exclude name =" ShortMethodName" />
13
14
</rule >
14
15
15
16
<rule ref =" rulesets/naming.xml/ShortVariable"
24
25
</properties >
25
26
</rule >
26
27
28
+ <rule ref =" rulesets/naming.xml/ShortMethodName"
29
+ since =" 0.2"
30
+ message =" Avoid method or function with short names like {0}. Configured minimum length is {1}."
31
+ class =" PHPMD\Rule\Naming\ShortMethodName"
32
+ externalInfoUrl =" https://phpmd.org/rules/naming.html#shortmethodname" >
33
+ <priority >3</priority >
34
+ <properties >
35
+ <property name =" minimum" description =" Minimum length for a method or function name" value =" 3" />
36
+ <property name =" exceptions" value =" up" />
37
+ </properties >
38
+ </rule >
39
+
27
40
<rule ref =" rulesets/unusedcode.xml" />
28
41
</pmd >
You can’t perform that action at this time.
0 commit comments