Violations relating to code coverage gets assigned to the author of last write to the file

Hi I’m using Enterprise version 8.4.2 of SonarQube. I could see that the violations for code coverage related issues gets automatically assigned to the author who wrote recently to the file though he/she hasn’t written those lines of code for which sonar shows issues regarding coverage. Can this be rectified so as to assign violations only for the code that is written by the respective authors?

Hi,

I’ve moved this to the Suggest New Rules category because you’re requesting a change to how these rules work.

In case it helps, rule raised at file level are going to be “blamed” on the most recent commit because that makes the most sense in the most cases. If I have a file that’s right below the threshold for raising a coverage issue, and then I make a change and it crosses the threshold then the issue is assigned to me. I may only be responsible for 1 uncovered line in the file. There may be people who have transgressed far worse than I have. But it was my commit that pushed the file over the edge. And if I cover my line, it will fall back under the threshold.

I know that doesn’t address what you actually asked for, but maybe understanding the philosophy helps.

 
Ann