Class DuplicateCodeScanner
java.lang.Object
hudson.model.AbstractDescribableImpl<Tool>
io.jenkins.plugins.analysis.core.model.Tool
io.jenkins.plugins.analysis.core.model.ReportScanningTool
io.jenkins.plugins.analysis.core.model.AnalysisModelParser
io.jenkins.plugins.analysis.warnings.DuplicateCodeScanner
- All Implemented Interfaces:
Describable<Tool>,Serializable
Provides settings for duplicate code scanners.
- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides a table that contains the duplication references as well.Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.AnalysisModelParser
AnalysisModelParser.AnalysisModelParserDescriptorNested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
ReportScanningTool.ReportScanningToolDescriptorNested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.Tool
Tool.ToolDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected edu.hm.hafner.analysis.registry.ParserDescriptor.Option[]Returns optional options to configure the parser - these options may customize the new parser instance (if supported by the selected).intReturns the minimum number of duplicate lines for high severity warnings.intReturns the minimum number of duplicate lines for normal warnings.voidsetHighThreshold(int highThreshold) Sets the minimum number of duplicate lines for high severity warnings.voidsetNormalThreshold(int normalThreshold) Sets the minimum number of duplicate lines for normal severity warnings.Methods inherited from class io.jenkins.plugins.analysis.core.model.AnalysisModelParser
createParser, getDescriptorMethods inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
getActualPattern, getLinesLookAhead, getPattern, getReportEncoding, getSkipSymbolicLinks, scan, setLinesLookAhead, setPattern, setReportEncoding, setSkipSymbolicLinksMethods inherited from class io.jenkins.plugins.analysis.core.model.Tool
getActualId, getActualName, getIcon, getId, getLabelProvider, getName, getSymbolName, readResolve, setIcon, setId, setJenkinsFacade, setName
-
Constructor Details
-
DuplicateCodeScanner
public DuplicateCodeScanner()
-
-
Method Details
-
configureOptions
protected edu.hm.hafner.analysis.registry.ParserDescriptor.Option[] configureOptions()Description copied from class:AnalysisModelParserReturns optional options to configure the parser - these options may customize the new parser instance (if supported by the selected).- Overrides:
configureOptionsin classAnalysisModelParser- 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
-