diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-05-15 21:05:27 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-16 02:13:03 +0000 |
commit | 889119d0075ff717efa935723ccaa55cc9848b0a (patch) | |
tree | af7d507bdf54385d17d265178714721405f192ef /buildscripts/linter | |
parent | 4e07c8d5fa95f781cd049cb1ba5362fe92beeac3 (diff) | |
download | mongo-889119d0075ff717efa935723ccaa55cc9848b0a.tar.gz |
SERVER-71746 Move mongo config header lint to clang-tidy
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index 2315f2192e7..6990920076b 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -129,8 +129,6 @@ class Linter: self.feature_flag_ignore_fcv_check_comments = [] self._error_count = 0 - self.found_config_header = False - def lint(self): """Run linter, returning error count.""" # steps: @@ -153,7 +151,6 @@ class Linter: continue self._check_for_mongo_polyfill(linenum) - self._check_for_mongo_config_header(linenum) self._check_for_collection_sharding_runtime(linenum) self._check_for_rand(linenum) self._check_for_c_stdlib_headers(linenum) @@ -290,18 +287,6 @@ class Linter: return linenum return linenum - def _check_for_mongo_config_header(self, linenum): - """Check for a config file.""" - if self.found_config_header: - return - - line = self.clean_lines[linenum] - self.found_config_header = line.startswith('#include "mongo/config.h"') - - if not self.found_config_header and "MONGO_CONFIG_" in line: - self._error(linenum, 'build/config_h_include', - 'MONGO_CONFIG define used without prior inclusion of config.h.') - def _check_for_generic_fcv(self, linenum): line = self.clean_lines[linenum] if _RE_GENERIC_FCV_REF.search(line): |