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
Constructors Constructor Description Descriptor()
Creates the descriptor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckHighThreshold(AbstractProject<?,?> project, int highThreshold, int normalThreshold)
Performs on-the-fly validation on threshold for high warnings.FormValidation
doCheckNormalThreshold(AbstractProject<?,?> project, int highThreshold, int normalThreshold)
Performs on-the-fly validation on threshold for normal warnings.StaticAnalysisLabelProvider
getLabelProvider()
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, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getLabelProvider
public StaticAnalysisLabelProvider 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 AbstractProject<?,?> project, @QueryParameter("highThreshold") int highThreshold, @QueryParameter("normalThreshold") int normalThreshold)
Performs on-the-fly validation on 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 AbstractProject<?,?> project, @QueryParameter("highThreshold") int highThreshold, @QueryParameter("normalThreshold") int normalThreshold)
Performs on-the-fly validation on 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
-
-