Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71096

Add clang tidy rule for lint error code

    • Type: Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Development Platform

      There is a pretty unpleasant problem with the evergreen task "lint_errorcodes" - it turns out it doesn't "know" when some error codes are inside a comment.
      I commented out a certain version of some functions, and added a slightly different version of the same functions. The commented and the actual code used the same assertions.
      When I ran evergreen tests, lint_errorcodes failed because it considered the error codes in the commented out assertions as duplicates of the actual ones.
      Is there a way to tell the linter to ignore commented code?

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: