OUR UNIQUE APPROACH

The essential approach to clean code

Managing the quality of your entire code base can be overwhelming. Clean as You Code simplifies this with an incremental approach, empowering you to take ownership of all new code and keep it clean, whether it's written by you or an AI assistant.

USED AND LOVED BY 7 MILLION DEVELOPERS & 400,000+Organizations

  • Barclays
  • Airfrance
  • IBM
  • NASA
  • Microsoft
  • ebay
  • Request demo
  • Take a product tour
  • Sonar Community
  • Contact us
Interstitial

Clean as You Code™

Teams own their delivery of code quality

Late-cycle issues from AI generated code can undermine developer responsibility. Clean as You Code sets clear expectations, enabling developers to fully own their code and code from an AI coding assistant, ensuring the highest quality standards.

Image shows overall health of a project with all areas having a passing score

A simple, powerful approach

Developers are only expected to ensure that New Code—added or changed—adheres to Clean Code standards and does not introduce new issues. This approach is simple, effective, easily adopted, and solves the AI assisted code accountability problem.

Reduced effort on rework

In the course of touching old code to make new edits, quality gradually gets built into your application. Your codebase is slowly remediated and overall application quality progressively improves. It’s an effortless way to yield the best results.

Interstitial

Get started with Clean as You Code™

It takes a few simple steps to implement.

Clean Code in your IDE

Install Sonar's™ free IDE extension, SonarQube for IDE™, to find and fix issues from the moment developers write the code. Addressing issues as you code helps you shift left and saves precious time because it's the easiest to remediate.

In your CI/CD workflow

Ensure your project is using a Clean as You Code compliant Quality Gate focused on new code - added or changed. Then, set a new code period that is relevant to your project. Once completed respect and enforce your quality by only promoting code that passes the Quality Gate. It's that simple.

Always go for green

The only rule that needs to be applied is the understanding that no project will be released if it's failing its Quality Gate.

Companies change 20% of their code each year

Industry standard

20%

of the overall code is clean after 1 year

35%

of the overall code is clean after 2 years

50%

of the overall code is clean after 5 years

FOCUS IS ON NEW CODE

Your new code is clean, always

No matter the type of your application, its current state, or your team expertise, Clean as You Code establishes a standard expectation across the organization for all New Code—added or changed.

Clean code is being added to a project
OVERALL QUALITY IMPROVES

Gradually remediate and clean old code

As complexity grows and software continues to evolve, developers inevitably touch existing code to make new changes. As every line of updated code goes through a Clean as You Code Quality Gate, old code gets progressively remediated in the process.

Technical debt is represented as a large hill of code that gradually steps down as the clean as you code methodology is used as part of the development cycle.
A POWERFUL APPROACH

Maximum quality and impact, without the pain

Dealing with low-quality code is frustrating for developers, but organizations don't want to invest in fixing legacy debt. Fortunately, you can avoid both. Clean as You Code is the only approach that guarantees results without extra effort.

Issues with code are revealed within the developers platform while guidance for remediation is provided from Sonar
AI CODE ACCOUNTABILITY

Who ultimately owns AI assisted code?

Once AI generated code is added to the code base, nobody knows which part was generated by an AI assistant or created by a human. Clean as You Code empowers developers to retake ownership of the code by cleaning new code as they develop.

AI generated clean code
Image shows ai being asked to write some JavaScript

Try a better way to code

Start with open sourceExplore all editions
  • Legal documentation
  • Trust center
  • Follow SonarSource on Twitter
  • Follow SonarSource on Linkedin

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.