we have two projects with almost same code. one is having 3 blocker issues and second is having 8 blocker issues.the code lines where we are getting issue in fist project , for the same code it is not giving us the issue for second. PFB snippets.
Both the projects are using the same quality profile and quality gate.
the projects was giving 3 warnings but even after removing the warnings we are getting the same difference in blocker issues.
here i am providing the snippet for analysis properties in both projects configured for sonarqube.
Is there anything interesting in the analysis logs of the project with fewer issues? At a guess, I would say the binaries of that project aren’t being found, and so you’re getting a shallower analysis and thus fewer issues.
i can see in both the logs there are different no of files are getting indexed and o files are excluded. PFA.
and i have added the binaries, reran the jobs but still they are showing same no of blockers.
so does it mean we need to remove blockers first as the cause may be due to difference in indexed files ?
The fact that a different number of files was indexed for each project is interesting… However, your screenshot shows that at least some same-file issues are missing, so that can’t fully account for the difference.
Your mention of Won’t Fix is interesting though. Have you checked both the Won’t Fix and the False Positive filters to see if the issues show up there?
Also, are both projects using the same quality profile(s)?