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 StringDEFAULT_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.ClosurebuildBodySection(AnalysisContext analysisContext, Results results)StringgetDefaultOutputFile()booleangetIncludeSummaryByPackage()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)ObjectinvokeMethod(String method, Object arguments)booleanisIncludeSummaryByPackage()voidsetDefaultOutputFile(String value)voidsetIncludeSummaryByPackage(boolean value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)StringtoString()-
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 String DEFAULT_OUTPUT_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractHtmlReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractHtmlReportWriter
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractHtmlReportWriter
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractHtmlReportWriter
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractHtmlReportWriter
-
getDefaultOutputFile
public String getDefaultOutputFile()
-
setDefaultOutputFile
public void setDefaultOutputFile(String value)
-
getIncludeSummaryByPackage
public boolean getIncludeSummaryByPackage()
-
isIncludeSummaryByPackage
public boolean isIncludeSummaryByPackage()
-
setIncludeSummaryByPackage
public void setIncludeSummaryByPackage(boolean value)
-
buildBodySection
protected groovy.lang.Closure buildBodySection(AnalysisContext analysisContext, Results results)
- Specified by:
buildBodySectionin classAbstractHtmlReportWriter
-
-