← All insightsTroubleshooting

Troubleshooting SonarQube: common problems and fixes

CodeWizard Academy · 23 October 2025 · 3 min read · Advanced

When SonarQube misbehaves, the cause is usually one of a handful of familiar issues. Here is how to spot and fix them fast.

The usual suspects

  • Analyzing but not enforcing the Quality Gate, so nothing improves
  • Chasing a green gate by disabling rules instead of fixing issues
  • No coverage report wired in, so coverage looks like zero

Commands for diagnosis

bash
sonar-scanner -Dsonar.host.url=http://localhost:9000 -Dsonar.token=$SONAR_TOKEN

Prevent the repeat

  • Enforce a 'new code' Quality Gate on every PR
  • Wire coverage reports into the scan
  • Triage security hotspots, don't blanket-ignore them

Want senior help putting SonarQube to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult