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
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
OpenTasks

@Symbol("taskScanner") @Extension public static class OpenTasks.Descriptor extends Tool.ToolDescriptor
Descriptor for this static analysis tool.
  • Constructor Details

    • Descriptor

      public Descriptor()
      Creates the descriptor instance.
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Tool>
    • getLabelProvider

      public StaticAnalysisLabelProvider getLabelProvider()
      Description copied from class: Tool.ToolDescriptor
      Returns a StaticAnalysisLabelProvider that will render all tool specific labels.
      Overrides:
      getLabelProvider in class Tool.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 configured
      includePattern - 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 configured
      excludePattern - 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 configured
      example - the text to be scanned for open tasks
      high - tag identifiers indicating high priority
      normal - tag identifiers indicating normal priority
      low - tag identifiers indicating low priority
      ignoreCase - if the case should be ignored during matching
      asRegexp - if the identifiers should be treated as regular expression
      Returns:
      validation result