Class Cpd.Descriptor
- Enclosing class:
Cpd
@Symbol("cpd")
@Extension
public static class Cpd.Descriptor
extends AnalysisModelParser.AnalysisModelParserDescriptor
Descriptor for this static analysis tool.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckHighThreshold
(BuildableItem project, int highThreshold, int normalThreshold) Performs on-the-fly validation of the threshold for high warnings.doCheckNormalThreshold
(BuildableItem project, int highThreshold, int normalThreshold) Performs on-the-fly validation of the threshold for normal warnings.Returns aStaticAnalysisLabelProvider
that will render all tool specific labels.Methods inherited from class io.jenkins.plugins.analysis.core.model.AnalysisModelParser.AnalysisModelParserDescriptor
createParser, getDescriptionProvider, getDisplayName, getHelp, getPattern, getUrl
Methods inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool.ReportScanningToolDescriptor
canScanConsoleLog, doCheckPattern, doCheckReportEncoding, doFillReportEncodingItems, hasDefaultPattern
Methods inherited from class io.jenkins.plugins.analysis.core.model.Tool.ToolDescriptor
doCheckId, getId, getName, getSymbolName, isPostProcessingEnabled
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
Descriptor
public Descriptor()Creates the descriptor instance.
-
-
Method Details
-
getLabelProvider
Description copied from class:AnalysisModelParser.AnalysisModelParserDescriptor
Returns aStaticAnalysisLabelProvider
that will render all tool specific labels.- Overrides:
getLabelProvider
in classAnalysisModelParser.AnalysisModelParserDescriptor
- Returns:
- a tool specific
StaticAnalysisLabelProvider
-
doCheckHighThreshold
@POST public FormValidation doCheckHighThreshold(@AncestorInPath BuildableItem project, @QueryParameter("highThreshold") int highThreshold, @QueryParameter("normalThreshold") int normalThreshold) Performs on-the-fly validation of the threshold for high warnings.- Parameters:
project
- the project that is configuredhighThreshold
- the threshold for high warningsnormalThreshold
- the threshold for normal warnings- Returns:
- the validation result
-
doCheckNormalThreshold
@POST public FormValidation doCheckNormalThreshold(@AncestorInPath BuildableItem project, @QueryParameter("highThreshold") int highThreshold, @QueryParameter("normalThreshold") int normalThreshold) Performs on-the-fly validation of the threshold for normal warnings.- Parameters:
project
- the project that is configuredhighThreshold
- the threshold for high warningsnormalThreshold
- the threshold for normal warnings- Returns:
- the validation result
-