summaryrefslogtreecommitdiff
path: root/buildscripts/linter
diff options
context:
space:
mode:
authorDaniel Moody <dmoody256@gmail.com>2023-01-23 22:28:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-23 23:50:18 +0000
commit4ecc81d9cc5f56887be827ab2793d0f7114e816f (patch)
tree22eac6df1178ef36c6360d940871b4a75070dccd /buildscripts/linter
parent291b5e82c87e689a33ff1168c59b89502a37be3c (diff)
downloadmongo-4ecc81d9cc5f56887be827ab2793d0f7114e816f.tar.gz
SERVER-73047 add mongo tidy check unittests
Diffstat (limited to 'buildscripts/linter')
-rw-r--r--buildscripts/linter/simplecpplint.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py
index e3c3685a6c1..f668c9e638f 100644
--- a/buildscripts/linter/simplecpplint.py
+++ b/buildscripts/linter/simplecpplint.py
@@ -404,6 +404,13 @@ class Linter:
if "enterprise" in self.file_name:
return
+ norm_file_name = self.file_name.replace('\\', '/')
+
+ # Custom clang-tidy check tests purposefully produce errors for
+ # tests to find, they should be ignored.
+ if "mongo_tidy_checks/tests/" in norm_file_name:
+ return
+
# The following files are in the src/mongo/ directory but technically belong
# in src/third_party/ because their copyright does not belong to MongoDB.
files_to_ignore = set([
@@ -419,7 +426,6 @@ class Linter:
'src/mongo/util/scopeguard.h',
])
- norm_file_name = self.file_name.replace('\\', '/')
for file_to_ignore in files_to_ignore:
if file_to_ignore in norm_file_name:
return