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
-
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 -
Method Summary
Modifier and TypeMethodDescriptionint
groovy.lang.MetaClass
getProperty
(String property) getTitle()
protected String
getViolationLocationString
(Violation violation, String path) 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
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) Methods inherited from class org.codenarc.report.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:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractReportWriter
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractReportWriter
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractReportWriter
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractReportWriter
-
getTitle
-
setTitle
-
getDefaultOutputFile
-
setDefaultOutputFile
-
getMaxPriority
public int getMaxPriority() -
setMaxPriority
public void setMaxPriority(int value) -
writeReport
- Specified by:
writeReport
in classAbstractReportWriter
-
writeTitle
-
writeSummary
-
writePackageViolations
-
writeFileViolations
-
writeViolation
-
getViolationLocationString
-