Show coverage percentage instead of line of code

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    We’re using sonarqube 8.9.2
  • what are you trying to achieve
    For the activity report for coverage, it shows lines of code instead of %.

When we click on custom → add metric → coverage, here we get the percentage. Is there a way to get the default coverage to show percentage?

  • what have you tried so far to achieve this
    searching to see if this has been reported, look at configuration.

Hello @bryant.ung
thanks for reaching out on this topic.
Indeed there are no possibility to change the default coverage screen for your projects. However we don’t believe this should be necessary:

  • the default coverage graph is actually far more informative than the one you suggested as a potential replacement. It puts the coverage metrics in perspective with the project size (very important as it gives you an idea about the effort needed to fill the gap); this is not the case for the custom coverage graph
  • it also shows you the coverage percentage: you only need to mouse over the line to get the info
  • on any project, the graph you configure is stored with your browser cache. You will get back to your configured custom graph if you come back to the project (if you still think the custom graph is more convenient).

What do you think?