Hi team,
we are currently using Sonar 9.9 but I checked with 10.8 and it happens to be the same there.
If you go to the Issues page and then filter for something. E.g. issues of severity Info and then search for a special file in the File filter, you might get a long list of files which match the file filter but have no hit for the additional filter settings. This makes it very difficult to find the one file that you really want to see because of the long list of files you don’t want to see. Please see the screenshot for an example.
From my point of view it does not make sense to display these files that don’t match all filter criteria. Why are they shown here?
I’m surprised that we don’t at least sort the results by the number of issues. Sharing the below screenshot as an example where there are files with issues interspersed with the files with 0 issues.
Would this (sorting by number of issues, descending) help?
It’s probably debatable whether or not to show the “0” hits at all when there’s a free-text search, but it’s consistent with some other facets (we don’t make “Info” disappear below)
I agree that it is debatable weather or not to show the 0 hits, but personally I’d expect it to behave like the rules or directories filter which does not show these 0 hits.
Anyhow it would of course help a lot if the issues would be shown sorted by the number of issues. This way we could just ignore the 0 hits at the bottom.