SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): Local
And a thorough description of the problem / question:
I can’t configure SonarQube to connect to our server, so it’s just installed as a plug-in for eclipse without any connection currently.
It flags the todo comment as expected, but I was also expecting a “The left operand of ‘<’ is a garbage value” flag. I made sure to right click the cpp file > SonarQube > Analyze. Still won’t pick it up. Any ideas?
I have not been able to reproduce the problem that you are describing. If you check out the following Compiler Explorer, Sonar will correctly report an [The left operand of '<' is a garbage value (cpp:S836)] issue as well as a few others.
SonarQube for IDE (without connected mode) also correctly reported it in my VS Code setup.
It seems like a slight hickup with the analysis setup. Have you created a compile_commands.json for your target project under analysis? This generally helps Sonar to better understand your code. You can also try to clear the cache.
Have you built your C or C++ project successfully in the IDE to have Eclipse CDT configure everything properly and allow Sonar to pick up this configuration for the analysis?