public class CheckstyleReportGenerator extends Object
Constructor and Description |
---|
CheckstyleReportGenerator(Sink sink,
ResourceBundle bundle,
File basedir,
SiteTool siteTool,
String ruleset) |
Modifier and Type | Method and Description |
---|---|
void |
generateReport(CheckstyleResults results) |
com.puppycrawl.tools.checkstyle.api.Configuration |
getCheckstyleConfig() |
Log |
getLog() |
com.puppycrawl.tools.checkstyle.api.SeverityLevel |
getSeverityLevel() |
List<String> |
getTreeWalkerNames() |
String |
getXrefLocation() |
boolean |
isEnableFilesSummary() |
boolean |
isEnableRSS() |
boolean |
isEnableRulesSummary() |
boolean |
isEnableSeveritySummary() |
boolean |
matchRule(com.puppycrawl.tools.checkstyle.api.AuditEvent event,
String ruleName,
String expectedMessage,
String expectedSeverity)
Check if a violation matches a rule.
|
void |
setCheckstyleConfig(com.puppycrawl.tools.checkstyle.api.Configuration config) |
void |
setEnableFilesSummary(boolean enableFilesSummary) |
void |
setEnableRSS(boolean enableRSS) |
void |
setEnableRulesSummary(boolean enableRulesSummary) |
void |
setEnableSeveritySummary(boolean enableSeveritySummary) |
void |
setLog(Log log) |
void |
setSeverityLevel(com.puppycrawl.tools.checkstyle.api.SeverityLevel severityLevel) |
void |
setTreeWalkerNames(List<String> treeWalkerNames) |
void |
setXrefLocation(String xrefLocation) |
List<org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.ConfReference> |
sortConfiguration(CheckstyleResults results) |
public CheckstyleReportGenerator(Sink sink, ResourceBundle bundle, File basedir, SiteTool siteTool, String ruleset)
public Log getLog()
public void setLog(Log log)
public void generateReport(CheckstyleResults results)
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 com.puppycrawl.tools.checkstyle.api.SeverityLevel getSeverityLevel()
public void setSeverityLevel(com.puppycrawl.tools.checkstyle.api.SeverityLevel severityLevel)
public boolean isEnableRulesSummary()
public void setEnableRulesSummary(boolean enableRulesSummary)
public boolean isEnableSeveritySummary()
public void setEnableSeveritySummary(boolean enableSeveritySummary)
public boolean isEnableFilesSummary()
public void setEnableFilesSummary(boolean enableFilesSummary)
public boolean isEnableRSS()
public void setEnableRSS(boolean enableRSS)
public String getXrefLocation()
public void setXrefLocation(String xrefLocation)
public com.puppycrawl.tools.checkstyle.api.Configuration getCheckstyleConfig()
public void setCheckstyleConfig(com.puppycrawl.tools.checkstyle.api.Configuration config)
public List<org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.ConfReference> sortConfiguration(CheckstyleResults results)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.