In SonarCloud, analysis report is pointing to location of duplicated lines of code. But because of screen size seems like file name is getting cropped…
Is there any other way to find full location of duplicated files…
I am attaching screenshot for better understanding.
Sure looks like a UI bug. I’ll flag this for attention. Meanwhile, higlighting the text (copy + paste) or inspecting the source code (browser dev tools) should reveal the full file name.
And, please don’t bump threads. We have weekends too.
The cropped file name is expected, but usually, there is a link leading to the file or the lines of code.
It is strange that you don’t have both in the screenshot.
Is this a public or private project?
Are you the owner of this project?
After looking deeper into the issue, the behavior you see is the default behavior is you’re checking a Pull request code or a branch.
I need to get back to my team to know more about this decision and maybe fix it. I’ll keep you updated
According to my team, this behavior works as intended.
As of now, SonarCloud only analyzes code related to pull requests, thus there is no way to be sure that the link will lead to the correct version of the file. Hence, it is not a link in case of a pull request.
Hi, @ismail.cherri ,
Thanks for updates…
My suggestion for such cases would be to let user know the file names instead of hyperlink. User will not be comfortable with copy+paste or inspecting source code workarounds.