public class TextReportWriter extends AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
Constructor and Description |
---|
TextReportWriter() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultOutputFile() |
int |
getMaxPriority() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
String |
getTitle() |
protected String |
getViolationLocationString(Violation violation,
String path) |
Object |
invokeMethod(String method,
Object arguments) |
void |
setDefaultOutputFile(String value) |
void |
setMaxPriority(int value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
void |
setTitle(String value) |
protected void |
writeFileViolations(Writer writer,
FileResults results) |
protected void |
writeFooter(Writer writer) |
protected void |
writePackageViolations(Writer writer,
Results results) |
void |
writeReport(Writer writer,
AnalysisContext analysisContext,
Results results) |
protected void |
writeSummary(Writer writer,
Results results) |
protected void |
writeTitle(Writer writer) |
protected void |
writeViolation(Writer writer,
Violation violation,
String path) |
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
getMetaClass
in class AbstractReportWriter
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
in class AbstractReportWriter
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class AbstractReportWriter
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class AbstractReportWriter
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class AbstractReportWriter
public String getTitle()
public void setTitle(String value)
public String getDefaultOutputFile()
public void setDefaultOutputFile(String value)
public int getMaxPriority()
public void setMaxPriority(int value)
public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
writeReport
in class AbstractReportWriter
protected void writeTitle(Writer writer)
protected void writeFileViolations(Writer writer, FileResults results)
protected String getViolationLocationString(Violation violation, String path)
protected void writeFooter(Writer writer)
Copyright © 2022. All rights reserved.