mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
lint/circular-dependencies: Only check for real circular dependencies
This commit is contained in:
parent
3248ebd754
commit
f1c9717c7e
@ -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"):
|
||||
|
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user