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.

  • Request Demo
  • Take a Product Tour
  • Sonar Community
  • Contact Us

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.

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, SonarLint™, 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.

Industry standard

companies change about 20% of their code each year

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

Trusted and loved by 7 Million Developers & 400,000+ Organizations

  • Barclays logo
  • Air France logo
  • IBM Logo
  • Nasa logo
  • Microsoft Logo
  • Ebay Logo

try a better way to code

Start with open sourceExplore all editions