@Mojo(name="pmd", threadSafe=true, requiresDependencyResolution=TEST) public class PmdReport extends AbstractPmdReport
aggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInSite, outputDirectory, project, reactorProjects, session, showPmdLog, skipEmptyReport, targetDirectoryCATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE| Constructor and Description |
|---|
PmdReport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
net.sourceforge.pmd.renderers.Renderer |
createRenderer()
Deprecated.
Use
PmdExecutor.createRenderer(String, String) instead. |
void |
executeReport(Locale locale) |
String |
getDescription(Locale locale) |
protected String |
getLocationTemp(String name)
Convenience method to get the location of the specified file name.
|
String |
getName(Locale locale) |
String |
getOutputName() |
protected String |
getSourceEncoding() |
void |
setRulesets(String[] rulesets)
Configures the PMD rulesets to be used directly.
|
constructXRefLocation, determineCurrentRootLogLevel, getFilesToProcess, getOutputDirectory, getOutputEncoding, getProject, getSiteRenderer, getToolchain, isXmlcloseReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectorygetLog, getPluginContext, setLog, setPluginContextpublic void setRulesets(String[] rulesets)
rulesets - the PMD rulesets to be used.rulesetspublic void executeReport(Locale locale) throws MavenReportException
executeReport in class AbstractMavenReportMavenReportExceptionpublic boolean canGenerateReport()
AbstractPmdReportcanGenerateReport in interface MavenReportcanGenerateReport in class AbstractPmdReportprotected String getSourceEncoding()
getSourceEncoding in class AbstractPmdReportprotected String getLocationTemp(String name)
name - the name of the file whose location is to be resolvedpublic String getOutputName()
@Deprecated public final net.sourceforge.pmd.renderers.Renderer createRenderer() throws MavenReportException
PmdExecutor.createRenderer(String, String) instead.MavenReportException - if no renderer found for the output typeCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.