Package org.codenarc.report
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 String
protected static final int
protected static final int
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 abstract groovy.lang.Closure
buildBodySection
(AnalysisContext analysisContext, Results results) protected groovy.lang.Closure
buildCSS()
protected groovy.lang.Closure
protected groovy.lang.Closure
protected groovy.lang.Closure
protected groovy.lang.Closure
buildRuleDescriptions
(AnalysisContext analysisContext) protected groovy.lang.Closure
protected String
protected String
formatSourceLine
(String sourceLine) protected String
formatSourceLine
(String sourceLine, int startColumn) protected String
boolean
int
groovy.lang.MetaClass
getProperty
(String property) getTitle()
invokeMethod
(String method, Object arguments) protected boolean
isDirectoryContainingFiles
(Results results) protected boolean
boolean
void
setIncludeRuleDescriptions
(boolean value) void
setMaxPriority
(int value) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value) void
void
writeReport
(Writer writer, AnalysisContext analysisContext, Results results) 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
-
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:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractReportWriter
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractReportWriter
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractReportWriter
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in 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:
writeReport
in 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
-