This task runs phpmd, a Project Mess Detector (PMD) for PHP Code. You need an installed version of this software to use this task.
Table 132. Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
file |
String |
Path to source file or path | n/a | Only when there are no nested
fileset elements
|
rulesets |
String |
Sets the rulesets used for analyzing the source code | codesize, unusedcode | No |
minimumPriority |
Integer |
The minimum priority for rules to load. | 5 | No |
allowedFileExtensions |
String |
Comma-separated list of valid file extensions (without dot) for analyzed files. | php | No |
ignorePatterns |
String |
Comma-separated list of directory patterns to ignore. | .git , .svn ,
CVS , .bzr ,
.hg |
No |
format |
String |
The format for the report when no nested formatter is used. | text | No |