As a developer, I’d like to be able to configure the list of issues so that it sorts the issues shown for every “file block” (Java code) in descending order within that file block.
The reason is the following:
When I start fixing an issue in line 22, it might be necessary to wrap the code one more line because it becomes longer during that fix.
Now, when there is another issue on line 180 (in the original file before the fix), the issue might not be on line 180 anymore, but in line 181. When I reach that issue in Sonar (which is usually opened on my 2nd screen), I usually press Ctrl+G (goto line) and enter the line number “180”. But there is no issue in line 180 anymore, because now the issue is in line 181 because of the new line above.
This gets even more confusing when there are more issues above.
This confusion can be avoided when SonarQube “guides” the developer to start fixing the issues from the bottom of the file. For this, it would be really helpful if the default ordering of the lines is descending in SonarQube