diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-04-27 20:38:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-27 21:26:00 +0000 |
commit | 7dd905d90593ab50322a3dfc6086b85ef0f02a9b (patch) | |
tree | 4f01db10716cd89ce64a4895ab51d4b4d028d612 /buildscripts | |
parent | e77c5df954dfa8f0aaed5fc6e340180b41d11254 (diff) | |
download | mongo-7dd905d90593ab50322a3dfc6086b85ef0f02a9b.tar.gz |
SERVER-71745 Move unstructured log lint to clang-tidy
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index 2f1ca2a6f9a..2315f2192e7 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -54,7 +54,6 @@ _RE_LINT = re.compile("//.*NOLINT") _RE_COMMENT_STRIP = re.compile("//.*") _RE_PATTERN_MONGO_POLYFILL = _make_polyfill_regex() -_RE_UNSTRUCTURED_LOG = re.compile(r'\blogd\s*\(') _RE_COLLECTION_SHARDING_RUNTIME = re.compile(r'\bCollectionShardingRuntime\b') _RE_RAND = re.compile(r'\b(srand\(|rand\(\))') @@ -154,7 +153,6 @@ class Linter: continue self._check_for_mongo_polyfill(linenum) - self._check_for_mongo_unstructured_log(linenum) self._check_for_mongo_config_header(linenum) self._check_for_collection_sharding_runtime(linenum) self._check_for_rand(linenum) @@ -245,13 +243,6 @@ class Linter: 'Illegal use of banned name from std::/boost:: for "%s", use mongo::stdx:: variant instead' % (match.group(0))) - def _check_for_mongo_unstructured_log(self, linenum): - line = self.clean_lines[linenum] - if _RE_UNSTRUCTURED_LOG.search(line) or 'doUnstructuredLogImpl' in line: - self._error( - linenum, 'mongodb/unstructuredlog', 'Illegal use of unstructured logging, ' - 'this is only for local development use and should not be committed.') - def _check_for_collection_sharding_runtime(self, linenum): line = self.clean_lines[linenum] if _RE_COLLECTION_SHARDING_RUNTIME.search( |