Clarification Needed on AI Code Assurance in SonarQube 2026.1.0

Hi Team,

We are testing AI Code Assurance in SonarQube 2026.1.0 and need clarification on how this feature is expected to work.

  1. SonarQube provides a built‑in “Sonar way for AI Code” Quality Gate with predefined conditions.

  2. We can also create our own Quality Gate and mark it as “Qualified for AI Code Assurance” even if the conditions differ from the built‑in one.

Our questions:

  • What AI‑specific logic is actually applied when a Quality Gate is marked as “AI Code Assurance”?

  • Does SonarQube perform any additional AI‑related checks, or is it simply enforcing standard metric conditions?

  • Is AI Code Assurance only responsible for detecting and labeling AI‑generated code, or does it influence the Quality Gate evaluation as well?

Important:
As per SonarQube document for ai code assurance, We labeled our project as “Contains AI Code,” applied the built‑in Sonar way for AI Code OR custom AI‑qualified gates, and added intentionally AI‑generated code — but SonarQube did not flag or detect any AI‑generated code in the files. No AI‑specific issues or indicators appeared. Only it detected code smells which are related to language specific which usually it detects.

So we would like to understand:

  • What triggers the detection of AI‑generated code?

  • Are there limitations in 2026.1.0 or specific requirements for AI detection to work?

  • Or is this feature simply limited to letting us manually label a project as AI‑generated code, without performing any actual AI‑specific detection?

Thanks in advance for your help!

You should forget about the AI code detection feature as Sonar has already deprecated it and will probably remove it soon ( rational being in future most code if not all will be generated by AI so no point in flagging it ).

Your questions regarding what makes a gate condition as “AI assured” , i think its just reflects sonar’s recommendation for ai generated code and the ability to mark any gate as “AI assured” they are giving users ability have there own standards. That being said i am looking forward to what sonar source think as well.

Thanks for checking this, Manish. We are aware that the AI auto‑detection feature has been deprecated and will soon be removed.
However, my question is specifically about AI Code Assurance, not AI code detection so looking forward to the response from sonar source team on this to get more clarity on this .