# Need to know about customized Quality gate

**URL:** <https://community.sonarsource.com/t/need-to-know-about-customized-quality-gate/75449>\
**Category:** SonarQube Server / Community Build\
**Tags:** coverage\
**Created:** [November 2, 2022, 3:14pm UTC](https://community.sonarsource.com/t/need-to-know-about-customized-quality-gate/75449 "2022-11-02T15:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NareshEG](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@NareshEG](https://community.sonarsource.com/u/NareshEG)\
**Post date:** [November 2, 2022, 3:14pm UTC](https://community.sonarsource.com/t/need-to-know-about-customized-quality-gate/75449/1 "2022-11-02T15:14:13Z")

</div>

Hi Team,

We are using Sonar community edition 9.4.

We need to set the code coverage condition on sonarQube Quality gate.

Condition: Either overall code coverage or New code coverage is having 80% , the project should pass.

Is it possible set “or” condition in Qulaity gate.

Example:  
Overall code coverage is 84%  
New code coverage is 60%

I set for coverage value for both overall & New code is set as 80 in Qulaity gate.

Is it possible to build the project as pass status for the above example. If Yes, how we can configure?

Regards,  
Naresh

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 3, 2022, 1:26pm UTC](https://community.sonarsource.com/t/need-to-know-about-customized-quality-gate/75449/2 "2022-11-03T13:26:32Z")

</div>

Hi,

It’s not possible to `or` conditions together. We suggest you simply enforce a rigorous Coverage on New Code standard. Do that, and eventually, overall coverage will improve organically.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![NareshEG](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@NareshEG](https://community.sonarsource.com/u/NareshEG)\
**Post date:** [November 3, 2022, 1:56pm UTC](https://community.sonarsource.com/t/need-to-know-about-customized-quality-gate/75449/3 "2022-11-03T13:56:28Z")

</div>

Thanks for updates Ann
