Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7870

Fix measurement of cyclomatic code complexity

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.0.2, 4.4.9, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2021-07-26

      WiredTiger has an Evergreen job that measures Cyclomatic Code complexity using the uses the Mextrix++ tool.

      The Evergreen job installs Metrix++ into the `src` directory. Unfortunately, this means that the complexity measurements include the Metrix++ source code as well as the WiredTiger source code, thus giving incorrect summary statistics (note that statistics on  individual files are correct). This problem is clear in the logs (eg https://evergreen.mongodb.com/task/wiredtiger_code_statistics_cyclomatic_complexity_da48c1b3a1a7a2bf0334ce78f5c53bc9ff7b0489_21_07_16_17_16_30 ).

      The fix is to ensure that the install of Metrix++ is not into the `src' directory.

            Assignee:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Reporter:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: