iterative/dvc

View on GitHub
dvc/api/data.py

Summary

Maintainability
B
6 hrs
Test Coverage

File data.py has 277 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from contextlib import _GeneratorContextManager as GCM
from contextlib import contextmanager
from typing import Any, Optional

from funcy import reraise
Severity: Minor
Found in dvc/api/data.py - About 2 hrs to fix

    Function open has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def open(  # noqa: A001
    Severity: Major
    Found in dvc/api/data.py - About 1 hr to fix

      Function read has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def read(
      Severity: Major
      Found in dvc/api/data.py - About 1 hr to fix

        Function _open has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def _open(
        Severity: Major
        Found in dvc/api/data.py - About 1 hr to fix

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

          def get_url(
          Severity: Minor
          Found in dvc/api/data.py - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status