Standards for AI Code Assurance
On this page
SonarQube Cloud's AI Code Assurance features help you set appropriate standards for projects containing AI-generated code. A combination of tools, including project labels, a default quality gate, and the availability of externally published project badges, lets you ensure that your AI projects are protected for security and code quality.
Assuring your AI code
SonarQube Cloud recognizes that AI-generated code should be monitored with additional quality standards. Recommended checks include high standards to reduce code complexity, remove bugs, and eliminate injection vulnerabilities. SonarQube’s AI Code Assurance features bring confidence that your AI-generated code is being reviewed to avoid any accountability crisis.
These objectives are achieved with three features that allow Quality Standard administrators to qualify projects as AI Code Assured:
- Label your project as containing AI code
- Apply a quality gate for AI Code Assurance
- Publish an AI Code Assurance badge externally to your websites to Monitor projects containing AI code.
The full details are outlined on the Setting your quality standards for AI Code Assurance page.
Quality gates for AI code
Quality gates designed for projects containing AI-generated code are an important part of the quality control and review process. The Managing quality gates for AI code page outlines the important control measures that help protect against the buildup of new issues as you leverage AI assistance in your coding process, and adds an extra layer of protection helps catch vulnerabilities and critical reliability issues that could be lurking in your project.
Monitoring your projects
If you've completed the steps above to apply AI Code Assured quality gates to your project, a series of external badges are available to publish on your websites. For more details, please see the Monitoring projects with AI code page.
Related pages
- Overview of AI capabilities
- Setting up AI features at the organization level
- Learning about AI CodeFix to get AI-generated fix suggestions
Was this page helpful?