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

Fix measurement of cyclomatic code complexity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.0.2, 4.4.9, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2021-07-26

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: