Package org.codenarc.report
Class SortableHtmlReportWriter
- java.lang.Object
-
- org.codenarc.report.AbstractReportWriter
-
- org.codenarc.report.AbstractHtmlReportWriter
-
- org.codenarc.report.SortableHtmlReportWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,ReportWriter
public class SortableHtmlReportWriter extends AbstractHtmlReportWriter
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_OUTPUT_FILE
-
Fields inherited from class org.codenarc.report.AbstractHtmlReportWriter
CSS_FILE, MAX_SOURCE_LINE_LENGTH, SOURCE_LINE_LAST_SEGMENT_LENGTH
-
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 SortableHtmlReportWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected groovy.lang.Closure
buildBodySection(AnalysisContext analysisContext, Results results)
protected groovy.lang.Closure
buildScript()
String
getDefaultOutputFile()
groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
void
setDefaultOutputFile(String value)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
String
toString()
-
Methods inherited from class org.codenarc.report.AbstractHtmlReportWriter
buildCSS, buildHeaderSection, buildLogo, buildReportMetadata, buildRuleDescriptions, buildTitle, formatSourceLine, formatSourceLine, getCssFile, getIncludeRuleDescriptions, getMaxPriority, getTitle, isDirectoryContainingFiles, isDirectoryContainingFilesWithViolations, isIncludeRuleDescriptions, setIncludeRuleDescriptions, setMaxPriority, setTitle, writeReport
-
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
-
-
-
Field Detail
-
DEFAULT_OUTPUT_FILE
public static final String DEFAULT_OUTPUT_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractHtmlReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractHtmlReportWriter
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractHtmlReportWriter
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractHtmlReportWriter
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractHtmlReportWriter
-
getDefaultOutputFile
public String getDefaultOutputFile()
-
setDefaultOutputFile
public void setDefaultOutputFile(String value)
-
buildScript
protected groovy.lang.Closure buildScript()
- Overrides:
buildScript
in classAbstractHtmlReportWriter
-
buildBodySection
protected groovy.lang.Closure buildBodySection(AnalysisContext analysisContext, Results results)
- Specified by:
buildBodySection
in classAbstractHtmlReportWriter
-
-