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