Runs PHP Mess Detector. Checking PHP files for several potential problems based on rulesets.
Use \Project#createTask to register a new Task.
package |
phing.tasks.ext.phpmd |
---|---|
author |
Benjamin Schultz bschultz@proqrent.de |
version |
$Id: 6de5c80e97545cd52494c53490e96c09aa61e703 $ |
since | 2.4.1 |
addFileSet(\FileSet $fs) : void
createFormatter() : \PHPMDFormatterElement
getDescription() : string
string
The text description of the task
getFilesToParse() : array<mixed,string>
array<mixed,string>
list of absolute files to parse
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
loadDependencies() : string
throws | |
---|---|
string
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
setAllowedFileExtensions(string $fileExtensions)
string
List of valid file extensions without leading dot.
setCacheFile(\PhingFile $file)
setDescription(string $desc)
string
The text describing the task
setFile(\PhingFile $file)
setFormat(string $format)
string
setIgnorePatterns(string $ignorePatterns)
string
List of ignore patterns.
setLocation(\Location $location)
setMinimumPriority(integer $minimumPriority)
integer
Minimum rule priority.
setOwningTarget(\Target $target)
setPharLocation(string $pharLocation)
string
setProject(\Project $project) : void
setRulesets(string $ruleSetFileNames)
string
Comma-separated string of rule-set filenames or identifier.
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
filesets : array<mixed,\FileSet>
rulesets : string
var |
---|
string
minimumPriority : integer
var |
---|
integer
allowedFileExtensions : array
var |
---|
array
ignorePatterns : array
var |
---|
array
format : string
var |
---|
string
formatters : array<mixed,\PHPMDFormatterElement>
newVersion : boolean
var |
---|
boolean
pharLocation : string
var |
---|
string
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project