Class AbstractHtmlReportWriter
java.lang.Object
org.codenarc.report.AbstractReportWriter
org.codenarc.report.AbstractHtmlReportWriter
- All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter
- Direct Known Subclasses:
HtmlReportWriter, SortableHtmlReportWriter
public abstract class AbstractHtmlReportWriter
extends AbstractReportWriter
implements groovy.lang.GroovyObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final intprotected static final intFields inherited from class AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract groovy.lang.ClosurebuildBodySection(AnalysisContext analysisContext, Results results) protected groovy.lang.ClosurebuildCSS()protected groovy.lang.Closureprotected groovy.lang.Closureprotected groovy.lang.Closureprotected groovy.lang.ClosurebuildRuleDescriptions(AnalysisContext analysisContext) protected groovy.lang.Closureprotected Stringprotected StringformatSourceLine(String sourceLine) protected StringformatSourceLine(String sourceLine, int startColumn) protected Stringbooleanintgroovy.lang.MetaClassgetProperty(String property) getTitle()invokeMethod(String method, Object arguments) protected booleanisDirectoryContainingFiles(Results results) protected booleanbooleanvoidsetIncludeRuleDescriptions(boolean value) voidsetMaxPriority(int value) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) voidvoidwriteReport(Writer writer, AnalysisContext analysisContext, Results results) Methods inherited from class AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
Field Details
-
MAX_SOURCE_LINE_LENGTH
protected static final int MAX_SOURCE_LINE_LENGTH- See Also:
-
SOURCE_LINE_LAST_SEGMENT_LENGTH
protected static final int SOURCE_LINE_LAST_SEGMENT_LENGTH- See Also:
-
CSS_FILE
- See Also:
-
-
Constructor Details
-
AbstractHtmlReportWriter
public AbstractHtmlReportWriter()
-
-
Method Details
-
formatSourceLine
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractReportWriter
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractReportWriter
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractReportWriter
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractReportWriter
-
getTitle
-
setTitle
-
getIncludeRuleDescriptions
public boolean getIncludeRuleDescriptions() -
isIncludeRuleDescriptions
public boolean isIncludeRuleDescriptions() -
setIncludeRuleDescriptions
public void setIncludeRuleDescriptions(boolean value) -
getMaxPriority
public int getMaxPriority() -
setMaxPriority
public void setMaxPriority(int value) -
getCssFile
-
buildBodySection
protected abstract groovy.lang.Closure buildBodySection(AnalysisContext analysisContext, Results results) -
writeReport
- Specified by:
writeReportin classAbstractReportWriter
-
buildCSS
protected groovy.lang.Closure buildCSS() -
buildScript
protected groovy.lang.Closure buildScript() -
buildHeaderSection
protected groovy.lang.Closure buildHeaderSection() -
buildReportMetadata
protected groovy.lang.Closure buildReportMetadata() -
buildLogo
protected groovy.lang.Closure buildLogo() -
buildRuleDescriptions
-
formatSourceLine
-
isDirectoryContainingFilesWithViolations
-
isDirectoryContainingFiles
-
buildTitle
-