django/django

View on GitHub
django/db/models/fields/related.py

Summary

Maintainability
F
5 days
Test Coverage

File related.py has 1673 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import functools
import inspect
import warnings
from functools import partial

Severity: Major
Found in django/db/models/fields/related.py - About 4 days to fix

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

        def __init__(
    Severity: Major
    Found in django/db/models/fields/related.py - About 1 hr to fix

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

          def __init__(
      Severity: Major
      Found in django/db/models/fields/related.py - About 1 hr to fix

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

            def __init__(
        Severity: Major
        Found in django/db/models/fields/related.py - About 1 hr to fix

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

              def contribute_to_class(self, cls, name, private_only=False, **kwargs):
          Severity: Minor
          Found in django/db/models/fields/related.py - About 35 mins to fix

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

                def contribute_to_class(self, cls, name, private_only=False, **kwargs):
            Severity: Minor
            Found in django/db/models/fields/related.py - About 35 mins to fix

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

                  def __init__(self, to, on_delete, to_field=None, **kwargs):
              Severity: Minor
              Found in django/db/models/fields/related.py - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status