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:
commit
407b5324de
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue