Class AbstractHtmlReportWriter

    • Field Detail

      • MAX_SOURCE_LINE_LENGTH

        protected static final int MAX_SOURCE_LINE_LENGTH
        See Also:
        Constant Field Values
      • SOURCE_LINE_LAST_SEGMENT_LENGTH

        protected static final int SOURCE_LINE_LAST_SEGMENT_LENGTH
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractHtmlReportWriter

        public AbstractHtmlReportWriter()
    • Method Detail

      • formatSourceLine

        protected java.lang.String formatSourceLine​(java.lang.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 java.lang.Object invokeMethod​(java.lang.String method,
                                             java.lang.Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
        Overrides:
        invokeMethod in class AbstractReportWriter
      • getProperty

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

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

        public java.lang.String getTitle()
      • setTitle

        public void setTitle​(java.lang.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 java.lang.String getCssFile()
      • buildBodySection

        protected abstract groovy.lang.Closure buildBodySection​(AnalysisContext analysisContext,
                                                                Results results)
      • 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 java.lang.String formatSourceLine​(java.lang.String sourceLine,
                                                    int startColumn)
      • isDirectoryContainingFilesWithViolations

        protected boolean isDirectoryContainingFilesWithViolations​(Results results)
      • isDirectoryContainingFiles

        protected boolean isDirectoryContainingFiles​(Results results)
      • buildTitle

        protected java.lang.String buildTitle()