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
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected groovy.lang.Closure
buildBodySection
(AnalysisContext analysisContext, Results results) boolean
groovy.lang.MetaClass
getProperty
(String property) invokeMethod
(String method, Object arguments) boolean
void
setDefaultOutputFile
(String value) void
setIncludeSummaryByPackage
(boolean value) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) 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 Details
-
DEFAULT_OUTPUT_FILE
- See Also:
-
-
Constructor Details
-
HtmlReportWriter
public HtmlReportWriter()
-
-
Method Details
-
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
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractHtmlReportWriter
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractHtmlReportWriter
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractHtmlReportWriter
-
getDefaultOutputFile
-
setDefaultOutputFile
-
getIncludeSummaryByPackage
public boolean getIncludeSummaryByPackage() -
isIncludeSummaryByPackage
public boolean isIncludeSummaryByPackage() -
setIncludeSummaryByPackage
public void setIncludeSummaryByPackage(boolean value) -
toString
-
buildBodySection
- Specified by:
buildBodySection
in classAbstractHtmlReportWriter
-