Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5479

Allow to filter on Lines and Lines of Code in the Component Viewer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: Component Viewer
    • Labels:
      None

      Description

      Indeed, on the Measures tab (the first one), there's no filter. This means that once you've started filtering (using filters in other tabs), there's no way to come back to the code itself (except if you click "Show Full Source").

      Files normally have the "ncloc_data" measure (see documentation for this metric to se how to use it). This makes it possible to create 2 filters:

      • Lines
        • When clicking on this filter, it just shows the full source code
        • Then we can wonder if the "Show Full Source" action is still needed (if not, then we should add a tooltip on the "Lines" filter to tell that it shows the full source)
      • Lines of Code
        • Shows only the lines of code, i.e. the lines identified by the "1" value in the "ncloc_data" measure
        • If the "ncloc_data" measure is null or empty on a file, this filter should not be available

        Attachments

          Activity

            People

            Assignee:
            stas.vilchik Stas Vilchik (Inactive)
            Reporter:
            fabemn OLD - Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: