When I have some uncovered code or conditions in large files, then SonarCloud (and SonarQube) show me a link to the file on the metrics page.
If I follow that link, the file opens but its at the top by default and the file is folded after a couple hundred lines. I have to scroll through the whole file, which is super tedious.
It would be great usability wise to have the “related positions” (or additional positions? unsure how its named) feature that is used for issues and security vulnerabilities for coverage.
What I mean is that there should be locations on the sidebar for that file to lead me to the new code lines that are uncovered or contain uncovered conditions.
2 Likes
Hi @MarkusAmshove, thank you for this suggestion. We will add it to our backlog for investigation/consideration. I might come back to you if I have further questions. I hope that is ok?
Sure no problem, thank you for the reply 
I’m surprised I can’t see loads of people asking for this. But if you are looking at issues on a large file not taking you to the line in question is really tedious. Also code folding of unchanged code would make it all way nicer. Imagine if on github when you look at a PR there was no code folding and every file was full and you had to scan for changes. That’s exactly what Sonar is providing.
Hi @Dominic_Armstrong ,
I was just looking at this topic again. I agree, I’m a bit surprised too. We are looking at how we might improve our test experience more generally.
Thank you for adding your thoughts here.