Eclipse | Core concepts | Clean Code | Code analysis based on Clean Code
Code analysis based on Clean Code
The Sonar Solution is aimed at identifying any issue in your code that prevents it from being Clean Code.
Each Clean Code attribute is evaluated, for a given language, based on a series of rules:
- Each rule:
- Is associated with the Clean Code attribute it evaluates.
- Is associated with the software quality(ies) to which this Clean Code attribute contributes.
A severity (high, medium, or low) is assigned to each associated software quality (security, reliability, or maintainability). It determines how much that software quality is impacted when the rule is broken.
- When a rule is broken, an issue is raised. The issue affects one or more software qualities with a varying severity as inherited from the rule.
The figure below shows the Clean-Code-based analysis principles of the Sonar solution.
![](https://assets-eu-01.kc-usercontent.com:443/5e986e54-339c-01a9-7c7c-26cbc5a344d5/14a99430-6d36-4d1c-aead-5f7ae5d2e43a/sonar-code-analysis-based-on-clean-code_G0002.png?w=1131&h=761&auto=format&fit=crop)
Check the Clean Code definition page for details about Clean Code attributes, and the Clean Code benefits page to better understand software qualities.
Was this page helpful?