Package org.codenarc.report
Class TextReportWriter
- java.lang.Object
-
- org.codenarc.report.AbstractReportWriter
-
- org.codenarc.report.TextReportWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,ReportWriter
- Direct Known Subclasses:
IdeTextReportWriter
public class TextReportWriter extends AbstractReportWriter implements groovy.lang.GroovyObject
-
-
Field Summary
-
Fields inherited from class org.codenarc.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
-
-
Constructor Summary
Constructors Constructor Description TextReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultOutputFile()intgetMaxPriority()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)StringgetTitle()protected StringgetViolationLocationString(Violation violation, String path)ObjectinvokeMethod(String method, Object arguments)voidsetDefaultOutputFile(String value)voidsetMaxPriority(int value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetTitle(String value)protected voidwriteFileViolations(Writer writer, FileResults results)protected voidwriteFooter(Writer writer)protected voidwritePackageViolations(Writer writer, Results results)voidwriteReport(Writer writer, AnalysisContext analysisContext, Results results)protected voidwriteSummary(Writer writer, Results results)protected voidwriteTitle(Writer writer)protected voidwriteViolation(Writer writer, Violation violation, String path)-
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractReportWriter
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractReportWriter
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractReportWriter
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractReportWriter
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String value)
-
getDefaultOutputFile
public String getDefaultOutputFile()
-
setDefaultOutputFile
public void setDefaultOutputFile(String value)
-
getMaxPriority
public int getMaxPriority()
-
setMaxPriority
public void setMaxPriority(int value)
-
writeReport
public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
- Specified by:
writeReportin classAbstractReportWriter
-
writeTitle
protected void writeTitle(Writer writer)
-
writeFileViolations
protected void writeFileViolations(Writer writer, FileResults results)
-
getViolationLocationString
protected String getViolationLocationString(Violation violation, String path)
-
writeFooter
protected void writeFooter(Writer writer)
-
-