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

Speed up "issues" mode by scanning only changed files

    XMLWordPrintable

    Details

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

      Description

      When running an "issues" analysis and:

      • project is very big (many files)
      • difference between code to be analyzed and latest analysis on server side is small

      (this situation is very common for pre commit analysis)

      => then this could be a huge speed up of the analysis duration to:

      • ask Sensors to scan only changed files
      • reuse server side issues for all other unchanged files

      Compared to a full issues analysis the difference will be:

      • any change of configuration on server side (quality profile, settings) will not be taken into account on unchanged files
      • some cross file issues will not be reported (e.g. adding a @CheckForNull on a method can create new issues on other unchanged files)

      In rare situations where a fresh analysis of all files is needed this optimization can be disabled by using property: sonar.scanAllFiles=true

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: