Pull request analyses sometimes doesn't detect code smells


We use Sonarqube for static code analysis in two steps:

  1. pre merge - pull request analysis,
  2. post merge - branch analysis

We noticed that pull request analysis doesn’t detect code smells that later branch analysis detects.

We are using Developer Edition Version 8.5.1 (build 38104)

In overview tab status is that All conditions passed, but when I open issues for file that was analysed, I can spot two code smells.

Our Conditions on New Code for code smells is
Code Smells is greater than 0

This issue occurs intermittently.


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.5.1 → 8.9.10 → 9.8 (last step optional)

(Note that the release of a new LTS, 9.9, is expected on 7 Feb 2023.)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.