Sonar quality gate is failing for most of the files which are not related to the changes newly made and its showing issues,
duplication and security issues for the files which are in html format.
Earlier it was working fine but recently we are facing this issues.
We havent changed anything in sonar scan script from our end .
Please let us know if we need to make any changes from our end.
its in all contexts for our project repo . i mean for pull request scan on master and child branches. The failing quality gate condition mostly failing on duplicate code section. they were not shown earlier , it is shown recently only .
From the branch new code tab or PR homepage, when you click through on the duplications metric, are you shown new code? Because if the Quality Gate is failing on new duplications, I would guess that while the first instance of the code may be old, where it’s duplicated is new.