groovy.lang.GroovyObject
, ReportWriter
AbstractHtmlReportWriter
, BaselineXmlReportWriter
, TextReportWriter
, XmlReportWriter
public abstract class AbstractReportWriter extends Object implements ReportWriter, groovy.lang.GroovyObject
Modifier and Type | Field | Description |
---|---|---|
protected static String |
BASE_MESSAGES_BUNDLE |
|
protected static String |
CODENARC_URL |
|
protected static String |
CUSTOM_MESSAGES_BUNDLE |
|
protected String |
customMessagesBundleName |
|
protected groovy.lang.Closure |
getTimestamp |
|
protected groovy.lang.Closure |
initializeResourceBundle |
|
protected ResourceBundle |
resourceBundle |
|
protected static String |
VERSION_FILE |
Constructor | Description |
---|---|
AbstractReportWriter() |
protected static final String BASE_MESSAGES_BUNDLE
protected static final String CUSTOM_MESSAGES_BUNDLE
protected static final String VERSION_FILE
protected static final String CODENARC_URL
protected groovy.lang.Closure getTimestamp
protected String customMessagesBundleName
protected ResourceBundle resourceBundle
protected groovy.lang.Closure initializeResourceBundle
protected String getResourceBundleString(String resourceKey, String defaultString)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getOutputFile()
public void setOutputFile(String value)
public Object getWriteToStandardOut()
public void setWriteToStandardOut(Object value)
public abstract void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
public void writeReport(AnalysisContext analysisContext, Results results)
writeReport
in interface ReportWriter
protected void initializeDefaultResourceBundle()
protected String getResourceBundleString(String resourceKey, String defaultString, boolean logWarning)
protected String getFormattedTimestamp()
protected List getSortedRules(AnalysisContext analysisContext)
protected boolean isEnabled(Rule rule)
protected String getCodeNarcVersion()
Copyright © 2019. All rights reserved.