[SERVER-71096] Add clang tidy rule for lint error code Created: 04/Nov/22  Updated: 27/Oct/23  Resolved: 14/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Timour Katchaounov Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Participants:

 Description   

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?



 Comments   
Comment by Iryna Zhuravlova [ 14/Nov/22 ]

closing this issue per andrew.morrow@mongodb.com 's comment above

Generated at Thu Feb 08 06:18:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.