public abstract class AbstractHtmlReportWriter extends AbstractReportWriter
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
CSS_FILE |
protected static Object |
MAX_SOURCE_LINE_LENGTH |
protected static Object |
SOURCE_LINE_LAST_SEGMENT_LENGTH |
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE| Constructor and Description |
|---|
AbstractHtmlReportWriter() |
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReportprotected static final Object MAX_SOURCE_LINE_LENGTH
protected static final Object SOURCE_LINE_LAST_SEGMENT_LENGTH
protected static final Object CSS_FILE
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class AbstractReportWriterpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class AbstractReportWriterpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class AbstractReportWriterpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class AbstractReportWriterpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class AbstractReportWriterpublic String getTitle()
public void setTitle(String value)
public boolean getIncludeRuleDescriptions()
public boolean isIncludeRuleDescriptions()
public void setIncludeRuleDescriptions(boolean value)
public int getMaxPriority()
public void setMaxPriority(int value)
protected String getCssFile()
protected abstract Object buildBodySection(AnalysisContext analysisContext, Object results)
public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
writeReport in class AbstractReportWriterprotected Object buildCSS()
protected Object buildScript()
protected Object buildHeaderSection()
protected Object buildReportMetadata()
protected Object buildLogo()
protected Object buildRuleDescriptions(AnalysisContext analysisContext)
protected boolean isDirectoryContainingFilesWithViolations(Results results)
protected boolean isDirectoryContainingFiles(Results results)
protected String buildTitle()
Copyright © 2021. All rights reserved.