
Many folks are noticing that AI coding assistants are changing software development. By automating repetitive tasks, these tools can streamline workflows and allow developers to focus on higher-level problem-solving.
However, this increased efficiency comes with a new challenge: "code accountability."
While AI can rapidly generate impressive code snippets, it's not infallible. Errors, biases or misunderstandings (e.g. hallucinations,a s well) still creep into the generated output. To ensure code quality and reliability, human developers must carefully review and validate AI-generated code.
As AI becomes more sophisticated, there's a growing risk of developers becoming overly reliant on the technology, leading to a dilution of accountability.
This issue is particularly concerning in mission-critical applications where code errors can have severe consequences. In fact, bad code is already estimated to cost businesses more than a trillion dollars, according to research from CISCQ.
If developers become complacent about reviewing AI-generated code, there is a potential for serious vulnerabilities to slip through the cracks. Therefore, it's imperative to establish clear guidelines and processes for AI code review.
Enter Sonar.
Sonar helps developers prevent code quality and security issues from ever reaching production. Sonar analyzes all code, regardless of who writes it — your internal team or GenAI — resulting in more secure, reliable and maintainable software.
Recently, Sonar announced two new product capabilities for today’s AI-driven software development ecosystem: Sonar AI Code Assurance and Sonar AI CodeFix. These new capabilities improve the quality of code produced by GenAI and enhance Sonar’s offering with AI to deliver a better developer experience, respectively.
AI Code Assurance provides a comprehensive solution for ensuring the quality and security of AI-generated code. By integrating with SonarQube and SonarCloud, it enables organizations to implement a workflow that guarantees all code, both AI-generated and human-developed, is thoroughly analyzed for potential issues.
Key features of AI Code Assurance include project tagging for easy identification of AI-generated code, a specialized quality gate to ensure adherence to strict standards and a badge that signifies successful completion of the AI-ready analysis.
“With AI Code Assurance, we’re helping organizations ensure that AI written code receives the high level of quality and security review that you would expect from your developers,” said Tariq Shaukat, CEO of Sonar.
AI CodeFix uses AI to automatically generate code fix suggestions to save developers valuable time and effort. By understanding the context of code issues, AI CodeFix provides tailored solutions that are easily applied within the familiar SonarQube and SonarCloud user interface. This integration creates a smooth workflow.
“AI CodeFix helps developers streamline their workflow and ramp up their productivity. Rather than switching between solutions or manual efforts, we’re putting remediation options for Sonar-identified issues right in front of the people working on them – and giving them the ability to fix the issues in an instant,” said Fabrice Bellingard, Vice President of Product at Sonar. “We’re excited to see how our users adopt this capability and better understand how we can further integrate AI into our solutions to improve the developer experience.”
AI Code Assurance is now available on SonarQube and will be generally available in SonarCloud by the end of October. AI CodeFix is available for early access in SonarQube Enterprise Edition, SonarQube Data Center Edition and SonarCloud Team and Enterprise plans.
Be part of the discussion about the latest trends and developments in the Generative AI space at Generative AI Expo, taking place February 11-13, 2025 in Fort Lauderdale, Florida. Generative AI Expo covers the evolution of GenAI and feature conversations focused on the potential for GenAI across industries and how the technology is already being used to create new opportunities for businesses to improve operations, enhance customer experiences, and create new growth opportunities.
Edited by
Alex Passett