Class Cpd.Descriptor

All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
Cpd

@Symbol("cpd") @Extension public static class Cpd.Descriptor extends AnalysisModelParser.AnalysisModelParserDescriptor
Descriptor for this static analysis tool.
  • Constructor Details

    • Descriptor

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

    • getLabelProvider

      public StaticAnalysisLabelProvider getLabelProvider()
      Returns a StaticAnalysisLabelProvider that will render all tool specific labels.
      Overrides:
      getLabelProvider in class AnalysisModelParser.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 configured
      highThreshold - the threshold for high warnings
      normalThreshold - 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 configured
      highThreshold - the threshold for high warnings
      normalThreshold - the threshold for normal warnings
      Returns:
      the validation result