- All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Reporting<PmdReports>, Task, PatternFilterable, VerificationTask, Configurable<Task>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors
-
Method Summary
Compile class path for the classes to be analyzed.
Controls whether to use incremental analysis or not.
Path to the incremental cache file, if incremental analysis is used.
The maximum number of failures to allow before stopping the build.
The class path containing the PMD library to be used.
The reports to be generated by this task.
The custom rule set to be used (if any).
The custom rule set files to be used.
The built-in rule sets to be used.
Specifies the rule priority threshold.
Returns the source for this task, after the include and exclude patterns have been applied.
Deprecated.
Specifies the number of threads used by PMD.
booleanWhether or not to write PMD results to
System.out.Configures the reports to be generated by this task.
Configures the reports to be generated by this task.
voidrun()voidCompile class path for the classes to be analyzed.
voidsetConsoleOutput (boolean consoleOutput)Whether or not to write PMD results to
System.out.voidThe class path containing the PMD library to be used.
voidThe custom rule set to be used (if any).
voidThe custom rule set files to be used.
voidThe built-in rule sets to be used.
voidDeprecated.
booleanstatic voidvalidate (int value)Validates the value is a valid PMD rules minimum priority (1-5)
Methods inherited from class SourceTask
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSet, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceMethods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingMethods inherited from class DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjects
-
Constructor Details
-
Pmd
-
-
Method Details
-
run
-
stdOutIsAttachedToTerminal
-
reports
-
reports
-
validate
-
getSource
-
getPmdClasspath
-
setPmdClasspath
-
getRuleSets
-
setRuleSets
-
getTargetJdk
-
setTargetJdk
-
getRuleSetConfig
-
setRuleSetConfig
-
getRuleSetFiles
-
setRuleSetFiles
-
getReports
-
getMaxFailures
-
getRulesMinimumPriority
-
isConsoleOutput
-
setConsoleOutput
-
getClasspath
-
setClasspath
-
getIncrementalAnalysis
-
getIncrementalCacheFile
-
getThreads
-