We recently encountered a problem, where-in we saw that the analysis ran on 1 branch passed the quality gates and on another branch, the quality gate was failed, wherein both the branch has the same code
We pushed the code in our development branch and the analysis was executed, the quality gate passed without any error.
Then we raised the Pull Request against our Release branch the Quality gate was failed at that point, and the reason was Maintainability rating was raised from E
Our Quality gate thresholds are set as below:
This was the only error that was raised during the analysis and this set the maintainability rating to E.
When I am trying to reproduce the same in my machine with the same file, it says the maintainability rating as A and doesn’t fail the build.
Please help me understand if it is a glitch in the system? or how do we avoid getting this same in the future?
I am adding my colleague will followup along with me @sohailshaikh001