janw/tapedrive

View on GitHub
podcasts/models/__init__.py

Summary

Maintainability
A
3 hrs
Test Coverage
C
76%

Showing 3 of 3 total issues

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

def __init__(self, verbose_name=None, name=None, min_value=None, max_value=None, **kwargs):
Severity: Minor
Found in podcasts/models/__init__.py - About 35 mins to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    storage_directory = models.CharField(
    null=False,
    blank=False,
    max_length=255,
    default=STORAGE_DIRECTORY,
    Severity: Major
    Found in podcasts/models/__init__.py and 1 other location - About 1 hr to fix
    podcasts/models/__init__.py on lines 31..38

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    naming_scheme = models.CharField(
    null=False,
    blank=False,
    max_length=255,
    default=DEFAULT_NAMING_SCHEME,
    Severity: Major
    Found in podcasts/models/__init__.py and 1 other location - About 1 hr to fix
    podcasts/models/__init__.py on lines 22..29

    There are no issues that match your filters.

    Category
    Status