SonarCloud | Managing your projects | AI settings
AI settings
On this page
Marking a project as containing AI-generated code
You can mark a project with an AI code assurance badge to indicate that it contains AI-generated code. To do this go to Your project > Administration > AI-generated code and activate the Contains AI-generated code setting.
When you activate this setting:
- the Sonar way quality gate is enforced on the project:
- If the project already uses the Sonar way quality gate, activating the setting will lock the project’s quality gate.
- If the project does not use the Sonar way quality gate, activating this setting will change the project’s quality gate to Sonar way and lock it.
Locking the Sonar way quality gate ensures that the AI-generated code is clean by enforcing high-quality standards.
- The project will have the AI code assurance label:
- An AI Code label is displayed next to the project in the UI.
You can use the AI code assurance badge to promote your project’s health. See the Using a project badge article to learn about publishing SonarCloud badges on your web pages.
Related pages
Was this page helpful?