Merge pull request #2373 from 011010/ci/conventions-systemdeps-exemption

ci(conventions): exempt cmake/SystemDeps.cmake from the system-dependency rule
This commit is contained in:
Adrià 2026-10-11 10:26:03 +02:00 committed by GitHub
commit 407b5324de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ class Check:
def build(self):
for path, lines in self.files(lambda p: p.name == "CMakeLists.txt" or p.suffix == ".cmake"):
if path == "cmake/SystemDeps.cmake":
continue
for number, text in lines:
if SYSTEM_DEPENDENCY.search(text.split("#", 1)[0]):
self.report("system-dependency", path, number, text.strip())