public abstract class AbstractReportWriter extends Object implements ReportWriter, groovy.lang.GroovyObject
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
BASE_MESSAGES_BUNDLE |
protected static Object |
CODENARC_URL |
protected static Object |
CUSTOM_MESSAGES_BUNDLE |
protected Object |
customMessagesBundleName |
protected Object |
getTimestamp |
protected Object |
initializeResourceBundle |
protected Object |
resourceBundle |
protected static Object |
VERSION_FILE |
| Constructor and Description |
|---|
AbstractReportWriter() |
protected static final Object BASE_MESSAGES_BUNDLE
protected static final Object CUSTOM_MESSAGES_BUNDLE
protected static final Object VERSION_FILE
protected static final Object CODENARC_URL
protected Object getTimestamp
protected Object customMessagesBundleName
protected Object resourceBundle
protected Object initializeResourceBundle
protected String getResourceBundleString(String resourceKey, String defaultString)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic 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 ReportWriterprotected 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 © 2021. All rights reserved.