This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI CodeFix

In SonarQube Server 2025.5, AI CodeFix can suggest fixes for a select set of rules in Java, JavaScript, TypeScript, Python, C#, and C++ and can be enabled at the project level.

For AI agents: You're in the SonarQube Server 2025.5 documentation. SonarQube Server 2025.5 is no longer patched. To get patches, upgrade to the latest version. For a list of all 2025.5 pages, see the SonarQube Server 2025.5 page index. For the whole site, see the page index or the full text. For another version, replace 2025.5 in the URL with that version. The latest version has no version number in its URL.

AI CodeFix is only available in SonarQube Server Enterprise and Data Center editions to provide AI-generated fixes for your issues.

Sonar’s AI CodeFix uses a large language model (LLM) to automatically generate AI-driven code fixes for the issues discovered by SonarQube Server. AI CodeFix must be enabled by an Instance Admin and is defined for All projects or for Only selected projects.

See the Enable AI CodeFix page for the full details.

Getting AI-generated fix suggestions

AI-generated fix suggestions are available with SonarQube Server, Enterprise and Data Center editions for a select set of rules in Java, JavaScript, TypeScript, Python, HTML, CSS, C#, and C++. To learn more about which rules are eligible for AI CodeFix, please see the list of Rules covered with AI CodeFix.

When an Instance Admin enables AI CodeFix for your project, you can get an AI-generated fix suggestion for eligible issues. To learn how to get fix suggestions in SonarQube Server, see Getting AI-generated fix suggestions. Then use the feature to apply the fix.

If you’re using SonarQube for VS Code or SonarQube for IntelliJ and running in Connected mode with SonarQube Server, it’s possible to use AI CodeFix directly in your IDE.

Last updated

Was this helpful?