Code metrics should take into account method context filter in IDEA

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • open-source
    • Affects Version/s: None
    • Component/s: CIJ Plugin
    • None
    • Severity 2 - Major

      When a method context filter is configured in IDEA (e.g. ".toString."), a method is filtered-out in the source editor:

      However, it is not being filtered out in the project tree in the Cloverage view - code metric shows "1" instead of "0" for this method:

      Furthermore, when coverage data is being exported to the HTML report, even if the "use current filter settings" is enabled, it ignores the method context defined:

      At the same time, when an HTML report is generated from Maven, for instance, it applies the filter mostly correctly (mostly because it filters-out the most from a class complexity, but it could show "0" for a method itself too):

      Expected behaviour

      All methods excluded by the method context filter should affect code metrics.

              Assignee:
              Unassigned
              Reporter:
              Marek Parfianowicz (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: