lint/circular-dependencies: Only check for real circular dependencies

This commit is contained in:
Luke Dashjr 2018-12-14 15:27:26 +00:00
parent 3248ebd754
commit f1c9717c7e
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ def module_name(path):
return path
if path.endswith(".h"):
return path[:-2]
return path
if path.endswith(".c"):
return path[:-2]
if path.endswith(".cpp"):

View File

@ -25,6 +25,7 @@ EXPECTED_CIRCULAR_DEPENDENCIES = (
# Temporary, removed in followup https://github.com/bitcoin/bitcoin/pull/24230
"index/base -> node/context -> net_processing -> index/blockfilterindex -> index/base",
)
EXPECTED_CIRCULAR_DEPENDENCIES = ()
CODE_DIR = "src"
@ -47,6 +48,7 @@ def main():
)
for dependency_str in dependencies_output.stdout.rstrip().split("\n"):
if dependency_str == '': continue
circular_dependencies.append(
re.sub("^Circular dependency: ", "", dependency_str)
)