@Mojo(name="pmd",
threadSafe=true,
requiresDependencyResolution=TEST)
public class PmdReport
extends AbstractPmdReport
aggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInReports, session, showPmdLog, skipEmptyReport, targetDirectorylocale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool| 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 |
getI18nString(Locale locale,
String key) |
protected String |
getLocationTemp(String name,
int position)
Convenience method to get the location of the specified file name.
|
String |
getName(Locale locale) |
String |
getOutputName() |
void |
setRulesets(String[] rulesets)
Configures the PMD rulesets to be used directly.
|
canGenerateReportInternal, determineCurrentRootLogLevel, getAggregatedProjects, getFilesToProcess, getMojoExecution, getProject, getReactorProjects, getToolchain, isAggregator, isXmlcloseReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectorygetLog, getPluginContext, setLog, setPluginContextprotected String getI18nString(Locale locale, String key)
locale - The localekey - The key to search forpublic void setRulesets(String[] rulesets)
rulesets - the PMD rulesets to be used.rulesetspublic void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionpublic boolean canGenerateReport()
throws org.apache.maven.reporting.MavenReportException
canGenerateReport in interface org.apache.maven.reporting.MavenReportcanGenerateReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionprotected String getLocationTemp(String name, int position)
name - the name of the file whose location is to be resolvedposition - position in the list of rulesets (1-based)public String getOutputName()
@Deprecated public final net.sourceforge.pmd.renderers.Renderer createRenderer() throws org.apache.maven.reporting.MavenReportException
PmdExecutor.createRenderer(String, String) instead.org.apache.maven.reporting.MavenReportException - if no renderer found for the output typeCopyright © 2005–2024 The Apache Software Foundation. All rights reserved.