org.apache.maven.plugin.checkstyle
Class CheckstyleReportGenerator

java.lang.Object
  extended by org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator

public class CheckstyleReportGenerator
extends Object

Generate a report based on CheckstyleResults.

Version:
$Id: CheckstyleReportGenerator.java 1653380 2015-01-20 21:51:36Z hboutemy $

Constructor Summary
CheckstyleReportGenerator(Sink sink, ResourceBundle bundle, File basedir, SiteTool siteTool, String ruleset)
           
 
Method Summary
 void generateReport(CheckstyleResults results)
           
 Configuration getCheckstyleConfig()
           
 Log getLog()
           
 SeverityLevel getSeverityLevel()
           
 List<String> getTreeWalkerNames()
           
 String getXrefLocation()
           
 boolean isEnableFilesSummary()
           
 boolean isEnableRSS()
           
 boolean isEnableRulesSummary()
           
 boolean isEnableSeveritySummary()
           
 boolean matchRule(AuditEvent event, String ruleName, String expectedMessage, String expectedSeverity)
          Check if a violation matches a rule.
 void setCheckstyleConfig(Configuration config)
           
 void setEnableFilesSummary(boolean enableFilesSummary)
           
 void setEnableRSS(boolean enableRSS)
           
 void setEnableRulesSummary(boolean enableRulesSummary)
           
 void setEnableSeveritySummary(boolean enableSeveritySummary)
           
 void setLog(Log log)
           
 void setSeverityLevel(SeverityLevel severityLevel)
           
 void setTreeWalkerNames(List<String> treeWalkerNames)
           
 void setXrefLocation(String xrefLocation)
           
 List<org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.ConfReference> sortConfiguration(CheckstyleResults results)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckstyleReportGenerator

public CheckstyleReportGenerator(Sink sink,
                                 ResourceBundle bundle,
                                 File basedir,
                                 SiteTool siteTool,
                                 String ruleset)
Method Detail

getLog

public Log getLog()

setLog

public void setLog(Log log)

generateReport

public void generateReport(CheckstyleResults results)

matchRule

public boolean matchRule(AuditEvent event,
                         String ruleName,
                         String expectedMessage,
                         String expectedSeverity)
Check if a violation matches a rule.

Parameters:
event - the violation to check
ruleName - The name of the rule
expectedMessage - A message that, if it's not null, will be matched to the message from the violation
expectedSeverity - A severity that, if it's not null, will be matched to the severity from the violation
Returns:
The number of rule violations

getSeverityLevel

public SeverityLevel getSeverityLevel()

setSeverityLevel

public void setSeverityLevel(SeverityLevel severityLevel)

isEnableRulesSummary

public boolean isEnableRulesSummary()

setEnableRulesSummary

public void setEnableRulesSummary(boolean enableRulesSummary)

isEnableSeveritySummary

public boolean isEnableSeveritySummary()

setEnableSeveritySummary

public void setEnableSeveritySummary(boolean enableSeveritySummary)

isEnableFilesSummary

public boolean isEnableFilesSummary()

setEnableFilesSummary

public void setEnableFilesSummary(boolean enableFilesSummary)

isEnableRSS

public boolean isEnableRSS()

setEnableRSS

public void setEnableRSS(boolean enableRSS)

getXrefLocation

public String getXrefLocation()

setXrefLocation

public void setXrefLocation(String xrefLocation)

getCheckstyleConfig

public Configuration getCheckstyleConfig()

setCheckstyleConfig

public void setCheckstyleConfig(Configuration config)

setTreeWalkerNames

public void setTreeWalkerNames(List<String> treeWalkerNames)

getTreeWalkerNames

public List<String> getTreeWalkerNames()

sortConfiguration

public List<org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.ConfReference> sortConfiguration(CheckstyleResults results)


Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.