SonarQube Enterprise Edition Version 8.9 (build 43852)
My current version of the SonarQube is not detecting SOQL in for loops. This is a very basic rule and should exist in code scan. Any idea when will this rule be available?
We already specified rule S5383: SOQL queries should not be used inside loops. That being said, I have to say that the implementation is not the priority currently. We take good note of your request and will be happy to reconsider if we see general interest.
In any way, you can track the progress on this ticket: SONARSLANG-384.