# \#quality-gate

**URL:** https://community.sonarsource.com/tag/quality-gate/276.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Disable Azure DevOps PR Comments](https://community.sonarsource.com/t/disable-azure-devops-pr-comments/114275)

<div class="topic-metadata">

**Author:** [@icsmiller](https://community.sonarsource.com/u/icsmiller)\
**Replies:** 7\
**Last updated:** [October 6, 2026, 3:09pm UTC](https://community.sonarsource.com/t/disable-azure-devops-pr-comments/114275 "2026-10-06T15:09:06Z")

</div>

tl;dr We’ve configured quality gates as status checks on PR’s in Azure DevOps. This stops developers from merging code that doesn’t pass the quality gate. It also adds a lot of comments to each PR. We’re looking to keep …

---

## [Quality Gate conditions for dependency risk distinguishing direct vs. transitive vulnerabilities](https://community.sonarsource.com/t/quality-gate-conditions-for-dependency-risk-distinguishing-direct-vs-transitive-vulnerabilities/182476)

<div class="topic-metadata">

**Author:** [@CMM](https://community.sonarsource.com/u/CMM)\
**Replies:** 4\
**Last updated:** [October 1, 2026, 2:15pm UTC](https://community.sonarsource.com/t/quality-gate-conditions-for-dependency-risk-distinguishing-direct-vs-transitive-vulnerabilities/182476 "2026-10-01T14:15:33Z")

</div>

SonarQube currently supports quality gate conditions based on the total count or severity of vulnerabilities found in dependencies (via SCA). However, it does not distinguish between direct dependencies and transitive de…

---

## [Issues on unchanged code no longer fail your quality gate](https://community.sonarsource.com/t/issues-on-unchanged-code-no-longer-fail-your-quality-gate/188724)

<div class="topic-metadata">

**Author:** [@jibiel](https://community.sonarsource.com/u/jibiel)\
**Replies:** 0\
**Last updated:** [September 23, 2026, 1:56pm UTC](https://community.sonarsource.com/t/issues-on-unchanged-code-no-longer-fail-your-quality-gate/188724 "2026-09-23T13:56:33Z")

</div>

We’ve got an update for anyone who’s seen SonarQube flag a “new” issue on a line nobody touched: this is fixed, and it’s already live on SonarQube Cloud, SonarQube Server, and SonarQube Community Build. At a glance Is…

---

## [SonarQube CLI 1.8 — Actionable Quality Gate drill-downs and smoother agents integrations](https://community.sonarsource.com/t/sonarqube-cli-1-8-actionable-quality-gate-drill-downs-and-smoother-agents-integrations/188345)

<div class="topic-metadata">

**Author:** [@Farah](https://community.sonarsource.com/u/Farah)\
**Replies:** 0\
**Last updated:** [September 17, 2026, 7:50am UTC](https://community.sonarsource.com/t/sonarqube-cli-1-8-actionable-quality-gate-drill-downs-and-smoother-agents-integrations/188345 "2026-09-17T07:50:01Z")

</div>

Dear community, We’re excited to announce SonarQube CLI v1.8.0, a release that makes Quality Gate failures actionable at a glance, adds manual project binding command, and delivers quality-of-life improvements across is…

---

## [SonarQube CLI v1.7.0 - Quality Gate command and improved git integration](https://community.sonarsource.com/t/sonarqube-cli-v1-7-0-quality-gate-command-and-improved-git-integration/187856)

<div class="topic-metadata">

**Author:** [@Farah](https://community.sonarsource.com/u/Farah)\
**Replies:** 0\
**Last updated:** [August 31, 2026, 7:47pm UTC](https://community.sonarsource.com/t/sonarqube-cli-v1-7-0-quality-gate-command-and-improved-git-integration/187856 "2026-08-31T19:47:41Z")

</div>

Hello everyone, We’re excited to announce the release of SonarQube CLI 1.7.0 that brings a new Quality Gate command for your terminal, more reliable git hook chaining, and a handful of important bug fixes. :sparkles: A…

---

## [Azure DevOps PR quality gate stuck in Waiting — cannot clear project-level token (org PAT is valid)](https://community.sonarsource.com/t/azure-devops-pr-quality-gate-stuck-in-waiting-cannot-clear-project-level-token-org-pat-is-valid/186314)

<div class="topic-metadata">

**Author:** [@PexDex](https://community.sonarsource.com/u/PexDex)\
**Replies:** 4\
**Last updated:** [August 18, 2026, 12:15pm UTC](https://community.sonarsource.com/t/azure-devops-pr-quality-gate-stuck-in-waiting-cannot-clear-project-level-token-org-pat-is-valid/186314 "2026-08-18T12:15:17Z")

</div>

We also have a valid organization-level Azure DevOps connectivity PAT. Observed behavior: Analysis succeeds (Background Tasks = Success for PR analyses) Publish Quality Gate Result succeeds and reports Quality Gate OK …

---

## [Support for duplication/coverage grace limits](https://community.sonarsource.com/t/support-for-duplication-coverage-grace-limits/183771)

<div class="topic-metadata">

**Author:** [@electrofelix](https://community.sonarsource.com/u/electrofelix)\
**Replies:** 1\
**Last updated:** [June 24, 2026, 1:00pm UTC](https://community.sonarsource.com/t/support-for-duplication-coverage-grace-limits/183771 "2026-06-24T13:00:28Z")

</div>

Using the new code on the quality gate to push teams to improve code, however finding it can be difficult to make this a strict requirement. Every so often a PR comes along where it is difficult or would be worse to try…

---

## [SonarQube does not find new bugs in PRs, until they are merged to master](https://community.sonarsource.com/t/sonarqube-does-not-find-new-bugs-in-prs-until-they-are-merged-to-master/74897)

<div class="topic-metadata">

**Author:** [@DNavrotskyi](https://community.sonarsource.com/u/DNavrotskyi)\
**Replies:** 26\
**Last updated:** [June 11, 2026, 1:55pm UTC](https://community.sonarsource.com/t/sonarqube-does-not-find-new-bugs-in-prs-until-they-are-merged-to-master/74897 "2026-06-11T13:55:53Z")

</div>

SonarQube Developer Edition, version 9.6.1 (build 59531) SonarScanner 4.7.0.2747 Default New Code behaviour - Previous version Sonar scanner options for PRs are: - sonar.pullrequest.base=master - sonar.pullrequest…

---

## [Azure Devops Status check configuration with reset status breaks analysis](https://community.sonarsource.com/t/azure-devops-status-check-configuration-with-reset-status-breaks-analysis/179588)

<div class="topic-metadata">

**Author:** [@sebastiaanspeck](https://community.sonarsource.com/u/sebastiaanspeck)\
**Replies:** 10\
**Last updated:** [May 18, 2026, 9:02am UTC](https://community.sonarsource.com/t/azure-devops-status-check-configuration-with-reset-status-breaks-analysis/179588 "2026-05-18T09:02:34Z")

</div>

Must-share information (formatted with Markdown): SonarQube version 2026.1 (Developer Edition) Deployed via Docker in a Kubernetes cluster We would like to have status check in Azure DevOps for SonarQube and everythin…

---

## [ADO Quality Gate check "Waiting" status](https://community.sonarsource.com/t/ado-quality-gate-check-waiting-status/116549)

<div class="topic-metadata">

**Author:** [@prumenov](https://community.sonarsource.com/u/prumenov)\
**Replies:** 6\
**Last updated:** [April 9, 2026, 12:38pm UTC](https://community.sonarsource.com/t/ado-quality-gate-check-waiting-status/116549 "2026-04-09T12:38:18Z")

</div>

We have ADO integration with SonarCloud and the Quality Gate check gets stuck on “Waiting”. It is configured for each PR to trigger a CI pipeline with SonarCloud analysis. The pipeline completes successfully, the same re…

---

## [Quality Gate step failed during pipeline with error code 403 and exit code 22](https://community.sonarsource.com/t/quality-gate-step-failed-during-pipeline-with-error-code-403-and-exit-code-22/180757)

<div class="topic-metadata">

**Author:** [@alhobab-t](https://community.sonarsource.com/u/alhobab-t)\
**Replies:** 1\
**Last updated:** [April 3, 2026, 1:46pm UTC](https://community.sonarsource.com/t/quality-gate-step-failed-during-pipeline-with-error-code-403-and-exit-code-22/180757 "2026-04-03T13:46:20Z")

</div>

this is my pipeline i created for testing name: Debug Sonar on: push: branches: - dev2 jobs: sonar: runs-on: ubuntu-latest environment: Development steps: - name: Checkout Code …

---

## [Quality gate hanging in Azure DevOps](https://community.sonarsource.com/t/quality-gate-hanging-in-azure-devops/177296)

<div class="topic-metadata">

**Author:** [@MarkLeavesley](https://community.sonarsource.com/u/MarkLeavesley)\
**Replies:** 19\
**Last updated:** [March 23, 2026, 1:06pm UTC](https://community.sonarsource.com/t/quality-gate-hanging-in-azure-devops/177296 "2026-03-23T13:06:13Z")

</div>

In the last few days we’ve had PRs hang waiting on the quality gate. We’ve validated the PAT so that’s not the issue. I can see from both the background tasks and PR activity that Sonar is working. What I have noticed, a…

---

## [Accept issue only if agreed with reviewer?](https://community.sonarsource.com/t/accept-issue-only-if-agreed-with-reviewer/178980)

<div class="topic-metadata">

**Author:** [@jacomac](https://community.sonarsource.com/u/jacomac)\
**Replies:** 2\
**Last updated:** [March 17, 2026, 9:42am UTC](https://community.sonarsource.com/t/accept-issue-only-if-agreed-with-reviewer/178980 "2026-03-17T09:42:21Z")

</div>

On Sonarcloud used with Azure DevOps Pull Requests, we have a required code review on pull requests and sonar cloud quality gate status check. All Developers are currently allowed to accept issues should they not be able…

---

## [Azure Devops Status check configuration with reset status breaks analysis](https://community.sonarsource.com/t/azure-devops-status-check-configuration-with-reset-status-breaks-analysis/88308)

<div class="topic-metadata">

**Author:** [@MO2k4](https://community.sonarsource.com/u/MO2k4)\
**Replies:** 11\
**Last updated:** [March 11, 2026, 6:51pm UTC](https://community.sonarsource.com/t/azure-devops-status-check-configuration-with-reset-status-breaks-analysis/88308 "2026-03-11T18:51:24Z")

</div>

Must-share information (formatted with Markdown): SonarQube Version 9.9 (build 65466) Hey there, i am trying to configure a status check in Azure Devops for a SonarQube analysis and i got this error: Pull Request d…

---

## [SonarQube Quality gate on new code. Fails on first attempt. Succeeds on second attempt](https://community.sonarsource.com/t/sonarqube-quality-gate-on-new-code-fails-on-first-attempt-succeeds-on-second-attempt/152423)

<div class="topic-metadata">

**Author:** [@BeBetter](https://community.sonarsource.com/u/BeBetter)\
**Replies:** 21\
**Last updated:** [January 13, 2026, 11:45am UTC](https://community.sonarsource.com/t/sonarqube-quality-gate-on-new-code-fails-on-first-attempt-succeeds-on-second-attempt/152423 "2026-01-13T11:45:19Z")

</div>

Must-share information (formatted with Markdown): SonarQube Server v2025.4.2 (112048) deployed as zip expected consistent quality gate result Our quality gate is for New-Code only. Our project has multiple branches. …

---

## [Quality Gate - New Issues on "Old" Code](https://community.sonarsource.com/t/quality-gate-new-issues-on-old-code/153356)

<div class="topic-metadata">

**Author:** [@oliver-sintaj\_comap](https://community.sonarsource.com/u/oliver-sintaj_comap)\
**Replies:** 2\
**Last updated:** [December 23, 2025, 2:06pm UTC](https://community.sonarsource.com/t/quality-gate-new-issues-on-old-code/153356 "2025-12-23T14:06:52Z")

</div>

Hi, Our current Quality Gate is configured to block pull requests if there are more than 0 issues (of any type). However, we would like to implement a rule that allows 0 new issues on “old” (or overall) code. Example: …

---

## [NewCode missing issues for Projects with git submodules](https://community.sonarsource.com/t/newcode-missing-issues-for-projects-with-git-submodules/141970)

<div class="topic-metadata">

**Author:** [@morco](https://community.sonarsource.com/u/morco)\
**Replies:** 6\
**Last updated:** [December 18, 2025, 9:02pm UTC](https://community.sonarsource.com/t/newcode-missing-issues-for-projects-with-git-submodules/141970 "2025-12-18T21:02:30Z")

</div>

We have some fairly complex c/c++ projects (100.000 lines of code and more) based on git and having multiple git submodules and sometimes also submodules of submodules. We noticed that at least sometimes NewCode QG (rela…

---

## [SonarQubePublish Task Getting TimeOut](https://community.sonarsource.com/t/sonarqubepublish-task-getting-timeout/151674)

<div class="topic-metadata">

**Author:** [@Erkan\_Kilic](https://community.sonarsource.com/u/Erkan_Kilic)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 1:46pm UTC](https://community.sonarsource.com/t/sonarqubepublish-task-getting-timeout/151674 "2025-11-03T13:46:51Z")

</div>

Hi, We are using Azure DevOps with SonarQube Tasks. SonarQube Server is working on Azure VM with Ubuntu. Here is the specs. Operating System: Linux (ubuntu 22.04) Size: Standard B4ms vCPUs: 4 RAM: 16 GiB Disk: St…

---

## [Automated scan on new code -- How do I specify the quality gate for the first scan to use?](https://community.sonarsource.com/t/automated-scan-on-new-code-how-do-i-specify-the-quality-gate-for-the-first-scan-to-use/95516)

<div class="topic-metadata">

**Author:** [@George\_Snyder\_Fedins](https://community.sonarsource.com/u/George_Snyder_Fedins)\
**Replies:** 20\
**Last updated:** [October 31, 2025, 10:19am UTC](https://community.sonarsource.com/t/automated-scan-on-new-code-how-do-i-specify-the-quality-gate-for-the-first-scan-to-use/95516 "2025-10-31T10:19:31Z")

</div>

My organization has a shared set of steps that every build pipeline uses, including steps for SonarQube analysis. We have our default gate define the baseline requirements for all projects, and our shared steps ensure t…

---

## [Best Practices for Setting up a Quality Gate and Quality profile in SonarQube](https://community.sonarsource.com/t/best-practices-for-setting-up-a-quality-gate-and-quality-profile-in-sonarqube/151391)

<div class="topic-metadata">

**Author:** [@gacki](https://community.sonarsource.com/u/gacki)\
**Replies:** 1\
**Last updated:** [October 28, 2025, 12:44pm UTC](https://community.sonarsource.com/t/best-practices-for-setting-up-a-quality-gate-and-quality-profile-in-sonarqube/151391 "2025-10-28T12:44:53Z")

</div>

Hi, I’m looking to configure a Quality Gate for our project in SonarQube to maximize code quality while avoiding excessive blockage of development. I have a few questions: What criteria are most commonly used in a Q…

---

## [Issue Creating Quality Gate for New Code via Web API – SonarQube 10.6](https://community.sonarsource.com/t/issue-creating-quality-gate-for-new-code-via-web-api-sonarqube-10-6/151250)

<div class="topic-metadata">

**Author:** [@raks05](https://community.sonarsource.com/u/raks05)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 1:57pm UTC](https://community.sonarsource.com/t/issue-creating-quality-gate-for-new-code-via-web-api-sonarqube-10-6/151250 "2025-10-23T13:57:50Z")

</div>

Hello Sonar Community, I’m using SonarQube version 10.6.0.92116 and trying to create a quality gate via Web API with conditions on only three metrics: vulnerabilities, code smells, and bugs — for both Overall and New Co…

---

## [Less than configured minimum coverage on new code do sometime give a passed QualityGate](https://community.sonarsource.com/t/less-than-configured-minimum-coverage-on-new-code-do-sometime-give-a-passed-qualitygate/149220)

<div class="topic-metadata">

**Author:** [@atletokle](https://community.sonarsource.com/u/atletokle)\
**Replies:** 6\
**Last updated:** [October 22, 2025, 12:46pm UTC](https://community.sonarsource.com/t/less-than-configured-minimum-coverage-on-new-code-do-sometime-give-a-passed-qualitygate/149220 "2025-10-22T12:46:15Z")

</div>

We use SonarQube Developer Edition v2025.1 and have configured the analyzes to compare branches with master to find what is new code. But sometimes the QualityGate is green, even though we dont’t have sufficent code cov…

---

## [Clarification needed to understand SonarQube quality gate](https://community.sonarsource.com/t/clarification-needed-to-understand-sonarqube-quality-gate/149453)

<div class="topic-metadata">

**Author:** [@shanmugabharathim](https://community.sonarsource.com/u/shanmugabharathim)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 4:50pm UTC](https://community.sonarsource.com/t/clarification-needed-to-understand-sonarqube-quality-gate/149453 "2025-09-29T16:50:40Z")

</div>

Must-share information (formatted with Markdown): We are using SonarQube Server, Enterprise Edition, deployed via Docker. As the SonarQube admin for our instance, I’m working to ensure code quality for both new code …

---

## [Sudden change in quality gate for PRs, "New code" filter is not working](https://community.sonarsource.com/t/sudden-change-in-quality-gate-for-prs-new-code-filter-is-not-working/149223)

<div class="topic-metadata">

**Author:** [@cvarela-usesi](https://community.sonarsource.com/u/cvarela-usesi)\
**Replies:** 11\
**Last updated:** [September 25, 2025, 12:20pm UTC](https://community.sonarsource.com/t/sudden-change-in-quality-gate-for-prs-new-code-filter-is-not-working/149223 "2025-09-25T12:20:59Z")

</div>

This started happening this week, it used to work well before this week (September 22, 2025) ALM used is GitHub Languages of the repositories is TypeScript This is happening in all repos we have associated to projects …

---

## [Coverage for removed tests](https://community.sonarsource.com/t/coverage-for-removed-tests/98673)

<div class="topic-metadata">

**Author:** [@jazzdragon](https://community.sonarsource.com/u/jazzdragon)\
**Replies:** 3\
**Last updated:** [September 1, 2025, 11:54am UTC](https://community.sonarsource.com/t/coverage-for-removed-tests/98673 "2025-09-01T11:54:45Z")

</div>

It seems like code coverage is not affected if we remove tests, which actually causes coverage to drop. Since the coverage check only considers new lines of code, we get a false positive when the quality gate passes. It…

---

## [Monorepo - SonarCloud - Bitbucket - Quality Gate](https://community.sonarsource.com/t/monorepo-sonarcloud-bitbucket-quality-gate/146680)

<div class="topic-metadata">

**Author:** [@Jorelia](https://community.sonarsource.com/u/Jorelia)\
**Replies:** 7\
**Last updated:** [August 14, 2025, 7:40pm UTC](https://community.sonarsource.com/t/monorepo-sonarcloud-bitbucket-quality-gate/146680 "2025-08-14T19:40:23Z")

</div>

Overview Problem to configure SonarCloud with Monorepo (PNPM) on Bitbucket on Cloud Status: Our monorepo is setup at the Sonar cloud. Each sub-project can be seen on dashboard We use PNPM with native orchestration wit…

---

## [Set Checks on development branch to check SonarQube quality check status from pipeline to not allow](https://community.sonarsource.com/t/set-checks-on-development-branch-to-check-sonarqube-quality-check-status-from-pipeline-to-not-allow/145439)

<div class="topic-metadata">

**Author:** [@yg-og](https://community.sonarsource.com/u/yg-og)\
**Replies:** 5\
**Last updated:** [August 5, 2025, 10:50am UTC](https://community.sonarsource.com/t/set-checks-on-development-branch-to-check-sonarqube-quality-check-status-from-pipeline-to-not-allow/145439 "2025-08-05T10:50:54Z")

</div>

Hello, We’re trying to enable status checks on our development branch, but when we follow this guide Blocking the merge of Pull Requests on failed Quality Gate, with Azure DevOps the pull request stucks on Waiting.

---

## [Shouldn't the quality gate fail when no tests included?](https://community.sonarsource.com/t/shouldnt-the-quality-gate-fail-when-no-tests-included/145305)

<div class="topic-metadata">

**Author:** [@mvillanueva](https://community.sonarsource.com/u/mvillanueva)\
**Replies:** 2\
**Last updated:** [July 29, 2025, 8:04am UTC](https://community.sonarsource.com/t/shouldnt-the-quality-gate-fail-when-no-tests-included/145305 "2025-07-29T08:04:16Z")

</div>

Dear all, I have a simple question about quality gate and test coverage. If I do not have any test in a project and the quality gate condition on coverage is \<50% (for instance), shouldn’t the quality gate fail? What I…

---

## [Add properties for setting quality gates and profiles](https://community.sonarsource.com/t/add-properties-for-setting-quality-gates-and-profiles/68279)

<div class="topic-metadata">

**Author:** [@emorey.splunk](https://community.sonarsource.com/u/emorey.splunk)\
**Replies:** 13\
**Last updated:** [July 16, 2025, 8:28am UTC](https://community.sonarsource.com/t/add-properties-for-setting-quality-gates-and-profiles/68279 "2025-07-16T08:28:06Z")

</div>

Currently the only way I’m aware of to set quality gates and quality profiles is either through the UI or API. It would be really useful if we could set these as a property when calling the cli. (I believe sonar.qualit…

---

## [Error while loading/accessing Sonar Quality Gate](https://community.sonarsource.com/t/error-while-loading-accessing-sonar-quality-gate/138395)

<div class="topic-metadata">

**Author:** [@santanu](https://community.sonarsource.com/u/santanu)\
**Replies:** 7\
**Last updated:** [July 8, 2025, 1:33am UTC](https://community.sonarsource.com/t/error-while-loading-accessing-sonar-quality-gate/138395 "2025-07-08T01:33:42Z")

</div>

While loading Sonar Quality Gate, we are getting error An unexpected error occurred. Please try again later While using API - {"errors":\[{"msg":"An unexpected error occurred. Please try again later."}\]} Other than Qual…

[Next page](https://community.sonarsource.com/tag/quality-gate/276.md?match_all_tags=true&page=1&tags%5B%5D=quality-gate)
