Avoid duplicate review on pull branch analysis comments to gerrit


we have enterprise setup and it is running pull branch analysis and posting review for every pull that is made. however we want to know is there a way we can avoid duplicate comments to be posted for commits that are already checked for?

ex: if a user changes line 1 in file A in patchset 1 on Branch A, then sonar scans the changes and sends results. now same user on same BranchA makes a change on line2 in same file A in patchset 2 or call it commit 2 if on github then sonar is again sending results for line1 and line2 where it already reported this on first scan analysis. so can we avoid this?


Can you provide some more details? Specifically, what’s your SonarQube version and DevOps platform?