Issue counts will change with same code when scanning source code for 2 times

Template for a good bug report, formatted with Markdown:

  • Versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Enterprise Edition Version 8.9 (build 43852)

  • Error observed (wrap logs/code around triple quote ``` for proper formatting)
    for the 1st code scan: sonar-scanner found 30 code issues
    for the 2nd code scan: sonar-scanner found 25 code issues

  • Steps to reproduce

  • Potential workaround

  • Scanner command used when applicable (private details masked)
    it can be:

  • In case of SonarCloud:

    • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
    • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI, Jenkins, other)


Welcome to the community!

Could you provide some detail on the issues that were missing in the second analysis?