Start Free
SonarQube Community Build | Project administration | Changing quality gate

Changing the quality gate and fudge factor for your project

On this page

The instance's default quality gate is applied by default to your project. As a project administrator, you can apply other standards to your project. In addition, you can disable the fudge factor used for quality gate computation for your project.

Changing the quality gate applied to your project

  1. Retrieve your project.
  2. Select Project Settings > Quality Gate.
  3. Select Always use a specific Quality Gate, and select the quality gate in the list.
  4. Select Save.

Configuring the quality gate fudge factor

The quality gate fudge factor refers to a mechanism where conditions on duplication and coverage are ignored until the number of new lines is at least 20. This is used to avoid overly strict enforcement when dealing with small changes, as minor issues might disproportionately impact the overall quality gate status. By default, the quality gate fudge factor is enabled.

You can enable the fudge factor in the UI as explained below, or by setting the sonar.qualitygate.ignoreSmallChanges property to false or true on the CI/CD host (see Analysis parameters).

To enable or disable the quality gate fudge factor in the UI for your project:

  1. Retrieve your project.
  2. Select Project Settings > General Settings > General.
  3. In the Quality gate section, unselect or select Ignore duplication and coverage on small changes.

Was this page helpful?

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

Creative Commons License