bitcoin/bitcoin

View on GitHub
contrib/devtools/circular-dependencies.py

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

                for dep in deps[src]:
                    if dep not in closure:
                        closure[dep] = closure[src] + [src]
            if len(closure) == old_size:
Severity: Major
Found in contrib/devtools/circular-dependencies.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if included_module is not None and included_module in deps and included_module != module:
                        deps[module].add(included_module)
    
    # Loop to find the shortest (remaining) circular dependency
    have_cycle: bool = False
    Severity: Major
    Found in contrib/devtools/circular-dependencies.py - About 45 mins to fix

      Avoid too many return statements within this function.
      Open

          return None
      Severity: Major
      Found in contrib/devtools/circular-dependencies.py - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status