Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10174

New extension point to validate (some) scanner properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Plugin API, Scanner
    • Labels:
      None
    • Edition:
      Community

      Description

      ProjectBuilder extension was deprecated. One reported use case was to validate that some scanner properties are correct, and possibly failing the scanner execution.

      Assuming we consider this use case as valid, the proposal is to introduce a new extension point that will be called very early in scanner lifecycle (before any project specific operation). This extension point will be able to read (some) scanner properties.

      @ExtensionPoint
      @ScannerSide
      public interface ProjectDefinitionValidator {
        void validate(Context context);
      
        interface Context {
          String projectKey();
          [... TBD]
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              julien.henry Julien Henry
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: