Sonar Scans failing with duplicate code and other issues

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.

Hi,

You haven’t given a lot to go on here.

Is this in a PR analysis context?

What Quality Gate conditions are failing?

 
Thx,
Ann

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 .

Hi,

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.

 
Ann

it was showing front end files from different repos for some sonar reports. and we have seen major issues all of a sudden.

Hi,

What does this mean? Are you saying duplications are being detected cross-project?

Would you care to share some screenshots? Because I’m still struggling to understand your context.

 
Ann