AI features
On this page
SonarQube can create AI-generated fix suggestions for the issues detected in your projects and guarantee the quality of the AI-generated code.
AI-generated fix suggestions
This feature is available in Early Access, in Enterprise Edition and above.
SonarQube includes the AI CodeFix feature, which uses OpenAI's GPT-4 to suggest AI-generated fix suggestions for issues detected in your projects.
To learn how to use this feature, see the dedicated section on the Fixing issues page.
To learn how to enable the feature, see Enabling AI-generated fix suggestions in the administration section.
AI code assurance
This feature is available in Developer Edition and above.
AI code assurance is a feature you can use to ensure the AI-generated code in your project is clean. As a developer, you can activate a setting at the project level to:
- indicate that your project contains AI-generated code
- ensure that the AI-generated code, as part of your new code, passes the Sonar way quality gate
Once active, an AI Code label is displayed next to the project in the UI, and you can use the AI code assurance badge to promote your project's health.
To learn more about how to mark AI-generated code in your project, see the Marking a project as containing AI-generated code article on the Project settings page.
Was this page helpful?