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

Fail fast at startup when a language is missing a default built in quality profile

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Labels:
      None

      Description

      I was sure it was mandatory to declare at least one quality profile when developing a new language plugin.
      Seems there is no more checks for that at server startup (with 7.0 master).

      This result in some errors when calling some WS:

      Fail to process request http://127.0.0.1:37001/api/qualityprofiles/search.protobuf?project=sample-java
       java.lang.NullPointerException: null
       	at org.sonar.server.qualityprofile.ws.SearchAction.lambda$byProject$5(SearchAction.java:246)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duarte.meneses Duarte Meneses
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: