Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1964

Code metrics should take into account method context filter in IDEA

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • open-source
    • None
    • CIJ Plugin
    • None
    • Severity 2 - Major

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mparfianowicz Marek Parfianowicz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: