|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
org.gradle.api.plugins.quality.Pmd
class Pmd extends SourceTask
Runs a set of static code analysis rules on Java source code files and generates a report of problems found.
Field Summary |
---|
Fields inherited from class SourceTask | |
---|---|
source |
Property Summary | |
---|---|
boolean |
ignoreFailures
Whether or not to allow the build to continue if there are warnings. |
FileCollection |
pmdClasspath
The class path containing the PMD library to be used. |
FileCollection |
ruleSetFiles
The custom rule set files to be used. |
List |
ruleSets
The built-in rule sets to be used. |
TargetJdk |
targetJdk
The target JDK to use with PMD. |
Constructor Summary | |
Pmd(Instantiator instantiator, IsolatedAntBuilder antBuilder)
|
Method Summary | |
---|---|
PmdReports
|
getReports()
Returns the reports to be generated by this task. |
PmdReports
|
reports(Closure closure)
Configures the reports to be generated by this task. |
void
|
run()
|
Methods inherited from class SourceTask | |
---|---|
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
Property Detail |
---|
boolean ignoreFailures
@InputFiles FileCollection pmdClasspath
@InputFiles FileCollection ruleSetFiles
@Input List ruleSets
@Input TargetJdk targetJdk
Constructor Detail |
---|
@Inject Pmd(Instantiator instantiator, IsolatedAntBuilder antBuilder)
Method Detail |
---|
PmdReports getReports()
PmdReports reports(Closure closure)
@TaskAction void run()
Gradle API 1.12