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

Log a big warning when running preview analysis with no remote project

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1
    • Component/s: None
    • Labels:
      None

      Description

      It is a common mistake for users to run an incremental analysis with no remote project. For example main analysis is done with

      • sonar.projectKey = xxx
      • sonar.branch=yyy
        so project key is: xxx:yyy

      When users start an incremental analysis with only -Dsonar.projetcKey=xxx (no branch) then they are in fact analyzing a new project. They are often surprised to see that all files are analyzed and all issues are new.

      Proposed solution is to display a visible warning in logs.

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            henryju OLD - Julien HENRY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: