diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-02-07 23:33:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-08 00:35:06 +0000 |
commit | dd85f9436f82562f14d1ce9fb88640186b816209 (patch) | |
tree | 9a719a1eb71851d0d48869924eefa8fd34d03138 /buildscripts/linter | |
parent | ce2ec21b1a833e4de2e07819ec09b3fa6881b1ef (diff) | |
download | mongo-dd85f9436f82562f14d1ce9fb88640186b816209.tar.gz |
SERVER-71734 Use clang-tidy to prevent new instances of UninteruptibleLockGuard
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index f668c9e638f..c2903f5b3c7 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -399,18 +399,17 @@ class Linter: if linenum in self.nolint_suppression: 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 + if category == "legal/license": # Enterprise module does not have the SSPL license 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([ |