asphalt-framework/asphalt

View on GitHub
src/asphalt/core/context.py

Summary

Maintainability
D
2 days
Test Coverage

File context.py has 871 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from __future__ import annotations

__all__ = (
    "ResourceEvent",
    "ResourceConflict",
Severity: Major
Found in src/asphalt/core/context.py - About 2 days to fix

    Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(
    Severity: Minor
    Found in src/asphalt/core/context.py - About 45 mins to fix

      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(
      Severity: Minor
      Found in src/asphalt/core/context.py - About 35 mins to fix

        Function add_resource has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def add_resource(
        Severity: Minor
        Found in src/asphalt/core/context.py - About 35 mins to fix

          Function call_in_executor has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def call_in_executor(
          Severity: Minor
          Found in src/asphalt/core/context.py - About 35 mins to fix

            Function add_resource_factory has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def add_resource_factory(
            Severity: Minor
            Found in src/asphalt/core/context.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status