Class DuplicateCodeScanner

    • Constructor Detail

      • DuplicateCodeScanner

        public DuplicateCodeScanner()
    • Method Detail

      • configureOptions

        protected edu.hm.hafner.analysis.registry.ParserDescriptor.Option[] configureOptions()
        Description copied from class: AnalysisModelParser
        Returns optional options to configure the parser - these options may customize the new parser instance (if supported by the selected).
        Overrides:
        configureOptions in class AnalysisModelParser
        Returns:
        the options to use
      • getHighThreshold

        public int getHighThreshold()
        Returns the minimum number of duplicate lines for high severity warnings.
        Returns:
        the minimum number of duplicate lines for high severity warnings
      • setHighThreshold

        @DataBoundSetter
        public void setHighThreshold​(int highThreshold)
        Sets the minimum number of duplicate lines for high severity warnings.
        Parameters:
        highThreshold - the number of lines for severity high
      • getNormalThreshold

        public int getNormalThreshold()
        Returns the minimum number of duplicate lines for normal warnings.
        Returns:
        the minimum number of duplicate lines for normal warnings
      • setNormalThreshold

        @DataBoundSetter
        public void setNormalThreshold​(int normalThreshold)
        Sets the minimum number of duplicate lines for normal severity warnings.
        Parameters:
        normalThreshold - the number of lines for severity normal