Code issue count changed when scanning python code 2 times

  • 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)
    with the same source code:
    for the 1st code scan: sonar-scanner found 70 issues
    for the 2nd code scan: sonar-scanner found 65 issues
  • Steps to reproduce
    as above step
  • Potential workaround
  • Scanner command used when applicable (private details masked)
    it can be:

Hi @rubin ,
With the provided information we’re not able to reproduce the problem mentioned.
Can you please post a small reproducer (providing python code) when the issue count is not consistent between analysis?