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
Constructors Constructor Description Descriptor()
Creates the descriptor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckExample(AbstractProject<?,?> project, String example, String high, String normal, String low, boolean ignoreCase, boolean asRegexp)
Validates the example text that will be scanned for open tasks.FormValidation
doCheckExcludePattern(AbstractProject<?,?> project, String excludePattern)
Performs on-the-fly validation on the ant pattern for input files.FormValidation
doCheckIncludePattern(AbstractProject<?,?> project, String includePattern)
Performs on-the-fly validation on the ant pattern for input files.String
getDisplayName()
StaticAnalysisLabelProvider
getLabelProvider()
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, 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
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Tool>
-
getLabelProvider
public StaticAnalysisLabelProvider 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 AbstractProject<?,?> 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 case should be ignored during matchingasRegexp
- if the identifiers should be treated as regular expression- Returns:
- validation result
-
-