Package org.codenarc.report
Class HtmlReportWriter
- java.lang.Object
-
- org.codenarc.report.AbstractReportWriter
-
- org.codenarc.report.AbstractHtmlReportWriter
-
- org.codenarc.report.HtmlReportWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,ReportWriter
public class HtmlReportWriter extends AbstractHtmlReportWriter
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_OUTPUT_FILE
-
Fields inherited from class org.codenarc.report.AbstractHtmlReportWriter
CSS_FILE, MAX_SOURCE_LINE_LENGTH, SOURCE_LINE_LAST_SEGMENT_LENGTH
-
Fields inherited from class org.codenarc.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
-
-
Constructor Summary
Constructors Constructor Description HtmlReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected groovy.lang.Closure
buildBodySection(AnalysisContext analysisContext, Results results)
java.lang.String
getDefaultOutputFile()
boolean
getIncludeSummaryByPackage()
groovy.lang.MetaClass
getMetaClass()
java.lang.Object
getProperty(java.lang.String property)
java.lang.Object
invokeMethod(java.lang.String method, java.lang.Object arguments)
boolean
isIncludeSummaryByPackage()
void
setDefaultOutputFile(java.lang.String value)
void
setIncludeSummaryByPackage(boolean value)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(java.lang.String property, java.lang.Object value)
java.lang.String
toString()
-
Methods inherited from class org.codenarc.report.AbstractHtmlReportWriter
buildCSS, buildHeaderSection, buildLogo, buildReportMetadata, buildRuleDescriptions, buildScript, buildTitle, formatSourceLine, formatSourceLine, getCssFile, getIncludeRuleDescriptions, getMaxPriority, getTitle, isDirectoryContainingFiles, isDirectoryContainingFilesWithViolations, isIncludeRuleDescriptions, setIncludeRuleDescriptions, setMaxPriority, setTitle, writeReport
-
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
-
-
-
Field Detail
-
DEFAULT_OUTPUT_FILE
public static final java.lang.String DEFAULT_OUTPUT_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractHtmlReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractHtmlReportWriter
-
invokeMethod
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractHtmlReportWriter
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractHtmlReportWriter
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractHtmlReportWriter
-
getDefaultOutputFile
public java.lang.String getDefaultOutputFile()
-
setDefaultOutputFile
public void setDefaultOutputFile(java.lang.String value)
-
getIncludeSummaryByPackage
public boolean getIncludeSummaryByPackage()
-
isIncludeSummaryByPackage
public boolean isIncludeSummaryByPackage()
-
setIncludeSummaryByPackage
public void setIncludeSummaryByPackage(boolean value)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
buildBodySection
protected groovy.lang.Closure buildBodySection(AnalysisContext analysisContext, Results results)
- Specified by:
buildBodySection
in classAbstractHtmlReportWriter
-
-