Class AbstractHtmlReportWriter

java.lang.Object
org.codenarc.report.AbstractReportWriter
org.codenarc.report.AbstractHtmlReportWriter
All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter
Direct Known Subclasses:
HtmlReportWriter, SortableHtmlReportWriter

public abstract class AbstractHtmlReportWriter extends AbstractReportWriter implements groovy.lang.GroovyObject
  • Field Details

  • Constructor Details

    • AbstractHtmlReportWriter

      public AbstractHtmlReportWriter()
  • Method Details

    • formatSourceLine

      protected String formatSourceLine(String sourceLine)
    • getMetaClass

      public groovy.lang.MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      getMetaClass in class AbstractReportWriter
    • setMetaClass

      public void setMetaClass(groovy.lang.MetaClass mc)
      Specified by:
      setMetaClass in interface groovy.lang.GroovyObject
      Overrides:
      setMetaClass in class AbstractReportWriter
    • invokeMethod

      public Object invokeMethod(String method, Object arguments)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
      Overrides:
      invokeMethod in class AbstractReportWriter
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
      Overrides:
      getProperty in class AbstractReportWriter
    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class AbstractReportWriter
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String value)
    • getIncludeRuleDescriptions

      public boolean getIncludeRuleDescriptions()
    • isIncludeRuleDescriptions

      public boolean isIncludeRuleDescriptions()
    • setIncludeRuleDescriptions

      public void setIncludeRuleDescriptions(boolean value)
    • getMaxPriority

      public int getMaxPriority()
    • setMaxPriority

      public void setMaxPriority(int value)
    • getCssFile

      protected String getCssFile()
    • buildBodySection

      protected abstract groovy.lang.Closure buildBodySection(AnalysisContext analysisContext, Results results)
    • writeReport

      public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
      Specified by:
      writeReport in class AbstractReportWriter
    • buildCSS

      protected groovy.lang.Closure buildCSS()
    • buildScript

      protected groovy.lang.Closure buildScript()
    • buildHeaderSection

      protected groovy.lang.Closure buildHeaderSection()
    • buildReportMetadata

      protected groovy.lang.Closure buildReportMetadata()
    • buildLogo

      protected groovy.lang.Closure buildLogo()
    • buildRuleDescriptions

      protected groovy.lang.Closure buildRuleDescriptions(AnalysisContext analysisContext)
    • formatSourceLine

      protected String formatSourceLine(String sourceLine, int startColumn)
    • isDirectoryContainingFilesWithViolations

      protected boolean isDirectoryContainingFilesWithViolations(Results results)
    • isDirectoryContainingFiles

      protected boolean isDirectoryContainingFiles(Results results)
    • buildTitle

      protected String buildTitle()