Page History
Tip |
---|
From SonarQube version 6.7 it is no longer possible to manually change built in quality gates. Therefore we suggest you make your own copy of the Blueriq quality gate in SonarQube and edit this copy. |
A quality gate is the best way to enforce a quality policy in your organization. It's . Quality gates are an integral part of working with SonarQube. They are there to answer ONE question the most important question in software development: can I deliver my project to production today or not ?
In order to answer this question, you define a set of Boolean conditions is defined based on measure thresholds against which projects are measured. For example:
...
- Technological implementation differs from one application to another (you might not require the same code coverage on new code for Web or Java applicationslegacy projects might have different standards).
- You want to ensure stronger requirements on some of your applications (internal frameworks for examplelibraries distributed over all your projects might require more strict gates).
- Etc.
Which is why you can define as many quality gates as you wish. Quality Gates are defined and managed in the the Quality Gates page Gates page found in the top menu . of Sonarqube.
Thanks to the SonarQube notification mechanism, users can be notified when a quality gate fails. How to set up notifications for failing quality gates can be found on the Notifying users of Quality Gate failure page.
Blueriq Quality Gate
To make setting up quality gates more user friendly we introduced a Blueriq Quality Gate This gate can be extended and changed to suit the requirements of your project or projects. How to use the installer is documented on the Quality Gate Installer Guidelines page.
Default Metrics
The default metrics of the Blueriq quality gate can be found in the table below:
Name | Operator | Warning Value | Error Value |
---|---|---|---|
Number of Modules in Project | GT | 20 | 40 |
Number of Reusable Expressions | GT | 50 | 100 |
Number of Complex Expressions | GT | 10 | 50 |
Code Smells | GT | 30 | 100 |