Class OpenTasks.Descriptor
java.lang.Object
hudson.model.Descriptor<Tool>
io.jenkins.plugins.analysis.core.model.Tool.ToolDescriptor
io.jenkins.plugins.analysis.warnings.tasks.OpenTasks.Descriptor
- Enclosing class:
OpenTasks
@Symbol("taskScanner")
@Extension
public static class OpenTasks.Descriptor
extends Tool.ToolDescriptor
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 TypeMethodDescriptiondoCheckExample
(BuildableItem project, String example, String high, String normal, String low, boolean ignoreCase, boolean asRegexp) Validates the example text that will be scanned for open tasks.doCheckExcludePattern
(AbstractProject<?, ?> project, String excludePattern) Performs on-the-fly validation on the ant pattern for input files.doCheckIncludePattern
(AbstractProject<?, ?> project, String includePattern) Performs on-the-fly validation on the ant pattern for input files.Returns aStaticAnalysisLabelProvider
that will render all tool specific labels.Methods inherited from class io.jenkins.plugins.analysis.core.model.Tool.ToolDescriptor
doCheckId, getHelp, getId, getName, getSymbolName, getUrl, 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
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<Tool>
-
getLabelProvider
Description copied from class:Tool.ToolDescriptor
Returns aStaticAnalysisLabelProvider
that will render all tool specific labels.- Overrides:
getLabelProvider
in classTool.ToolDescriptor
- Returns:
- a tool specific
StaticAnalysisLabelProvider
-
doCheckIncludePattern
@POST public FormValidation doCheckIncludePattern(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String includePattern) Performs on-the-fly validation on the ant pattern for input files.- Parameters:
project
- the project that is configuredincludePattern
- the file pattern- Returns:
- the validation result
-
doCheckExcludePattern
@POST public FormValidation doCheckExcludePattern(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String excludePattern) Performs on-the-fly validation on the ant pattern for input files.- Parameters:
project
- the project that is configuredexcludePattern
- the file pattern- Returns:
- the validation result
-
doCheckExample
@POST public FormValidation doCheckExample(@AncestorInPath BuildableItem project, @QueryParameter String example, @QueryParameter String high, @QueryParameter String normal, @QueryParameter String low, @QueryParameter boolean ignoreCase, @QueryParameter boolean asRegexp) Validates the example text that will be scanned for open tasks.- Parameters:
project
- the project that is configuredexample
- the text to be scanned for open taskshigh
- tag identifiers indicating high prioritynormal
- tag identifiers indicating normal prioritylow
- tag identifiers indicating low priorityignoreCase
- if the case should be ignored during matchingasRegexp
- if the identifiers should be treated as regular expression- Returns:
- validation result
-