- Version: SonarQube Community 7.9.6 (LTS)
- Steps to reproduce
- Create a simple Hello World Java Project
- For this project, create a Quality Gate based on new code (critical and blocking issues greater than 0) and overall code (reopened issues greater than 0)
- Run the analysis on top of this project that has no critical/blocking issues (Result: Quality Gate Passed)
- Add a critical or blocker issue to the code, and rerun the analysis (Result: Quality Gate Failed)
- Remove the issue from the code, and rerun the analysis (Result: Quality Gate Passed)
- Add the issue back to the code, and rerun the analysis (Result: Quality Gate Passed)
In my understanding, in 6th step, the result of analysis should have been Quality Gate (QG) Failed instead of QG Passed.
- Why didn’t SonarQube consider the code added in step 6, as new code? (since in step 5, that code did not exist)
- Why didn’t SonarQube consider the reopened issue to break the quality gate? See the issue history of this added code. Isn’t it a “reopened issue”?