public class CheckstyleReportRenderer
extends org.apache.maven.reporting.AbstractMavenReportRenderer
Constructor and Description |
---|
CheckstyleReportRenderer(org.apache.maven.doxia.sink.Sink sink,
org.codehaus.plexus.i18n.I18N i18n,
Locale locale,
org.apache.maven.project.MavenProject project,
org.apache.maven.doxia.tools.SiteTool siteTool,
String ruleset,
boolean enableRulesSummary,
boolean enableSeveritySummary,
boolean enableFilesSummary,
CheckstyleResults results) |
Modifier and Type | Method and Description |
---|---|
String |
getTitle() |
String |
getXrefLocation() |
String |
getXrefTestLocation() |
boolean |
matchRule(com.puppycrawl.tools.checkstyle.api.AuditEvent event,
String ruleName,
String expectedMessage,
String expectedSeverity)
Check if a violation matches a rule.
|
protected void |
renderBody() |
void |
setTestSourceDirectories(List<File> testSourceDirectories) |
void |
setTreeWalkerNames(List<String> treeWalkerNames) |
void |
setXrefLocation(String xrefLocation) |
void |
setXrefTestLocation(String xrefTestLocation) |
List<org.apache.maven.plugins.checkstyle.CheckstyleReportRenderer.ConfReference> |
sortConfiguration(CheckstyleResults results) |
createLinkPatternedText, endSection, endTable, javaScript, link, linkPatternedText, paragraph, propertiesToString, render, startSection, startTable, startTable, tableCaption, tableCell, tableCell, tableHeader, tableHeaderCell, tableRow, text, verbatimLink, verbatimText
public CheckstyleReportRenderer(org.apache.maven.doxia.sink.Sink sink, org.codehaus.plexus.i18n.I18N i18n, Locale locale, org.apache.maven.project.MavenProject project, org.apache.maven.doxia.tools.SiteTool siteTool, String ruleset, boolean enableRulesSummary, boolean enableSeveritySummary, boolean enableFilesSummary, CheckstyleResults results)
public String getTitle()
getTitle
in interface org.apache.maven.reporting.MavenReportRenderer
getTitle
in class org.apache.maven.reporting.AbstractMavenReportRenderer
protected void renderBody()
renderBody
in class org.apache.maven.reporting.AbstractMavenReportRenderer
public boolean matchRule(com.puppycrawl.tools.checkstyle.api.AuditEvent event, String ruleName, String expectedMessage, String expectedSeverity)
event
- the violation to checkruleName
- The name of the ruleexpectedMessage
- A message that, if it's not null, will be matched to the message from the violationexpectedSeverity
- A severity that, if it's not null, will be matched to the severity from the violationpublic String getXrefLocation()
public void setXrefLocation(String xrefLocation)
public String getXrefTestLocation()
public void setXrefTestLocation(String xrefTestLocation)
public List<org.apache.maven.plugins.checkstyle.CheckstyleReportRenderer.ConfReference> sortConfiguration(CheckstyleResults results)
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.