How can I fix sonarqube findings of my code quickly by claude code or cursor?
I am surprised I couldn’t find any post or documentation on how to do this.
How can claude get a list of all the issues and fix them automatically?
How can I fix sonarqube findings of my code quickly by claude code or cursor?
I am surprised I couldn’t find any post or documentation on how to do this.
How can claude get a list of all the issues and fix them automatically?
Hi,
Welcome to the community!
We offer AI CodeFix, which allows you to use a self-hosted LLM if you need to.
HTH,
Ann
Hi @robert-elles, there are a few ways to use a code-generation AI with SonarQube.
IDE: The easiest way is to use our SonarQube extension in your preferred IDE, such as VS Code + Claude or Cursor. After connecting the extension to your SonarQube account and project, you can use your AI assistant to fix issues directly from the “SonarQube” or “Problems” tabs.
CLI: if you’re working in the command line, you can’t use the IDE extension. However, you can connect your AI assistant (e.g., Gemini CLI, Claude Code) to SonarQube’s MCP. The MCP server has tools that allow you to fetch project issues and then use the AI to fix them.
I hope this helps! Please let us know if you have any feedback on the IDE extensions or the MCP.