Setting your quality standards

Managing your quality standards in SonarQube Cloud provides you with a baseline for acceptable code, leading to more secure, reliable, and maintainable software.

In SonarQube Cloud, code quality and code security standards are enforced through two mechanisms: quality profiles and quality gates.

Every project has a quality profile set for each supported language. The profile defines which rules will be applied during code review and analysis.

After analysis, the quality gate takes the resulting metrics and compares them to its defined thresholds to determine if the code meets the requirements for release or merge.

The quality profile and quality gate of every new project are set to built-in defaults, (called Sonar way). The Sonar way quality profile and quality gate represent the optimum combination of rules and thresholds for most projects, guiding developers in using good coding practices and principles to improve code quality and code security.

While in most projects you can leave the quality gate and quality profile with their default definitions, there are cases where you may want to change them. This section will help you do that.

Quality standards and new codeManaging quality gatesManaging quality profilesStandards for AI Code Assurance

Last updated

Was this helpful?