Class TextReportWriter
java.lang.Object
org.codenarc.report.AbstractReportWriter
org.codenarc.report.TextReportWriter
- All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter
- Direct Known Subclasses:
IdeTextReportWriter
-
Field Summary
Fields inherited from class AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgroovy.lang.MetaClassgetProperty(String property) getTitle()protected StringgetViolationLocationString(Violation violation, String path) invokeMethod(String method, Object arguments) voidsetDefaultOutputFile(String value) voidsetMaxPriority(int value) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) voidprotected 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 AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
Constructor Details
-
TextReportWriter
public TextReportWriter()
-
-
Method Details
-
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
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractReportWriter
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractReportWriter
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractReportWriter
-
getTitle
-
setTitle
-
getDefaultOutputFile
-
setDefaultOutputFile
-
getMaxPriority
public int getMaxPriority() -
setMaxPriority
public void setMaxPriority(int value) -
writeReport
- Specified by:
writeReportin classAbstractReportWriter
-
writeTitle
-
writeSummary
-
writePackageViolations
-
writeFileViolations
-
writeViolation
-
getViolationLocationString
-