ahawker/scratchdir

View on GitHub

Showing 6 of 6 total issues

File scratchdir.py has 284 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""
    scratchdir
    ~~~~~~~~~~

    Context manager used to maintain your temporary directories/files.
Severity: Minor
Found in scratchdir.py - About 2 hrs to fix

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

        def named(self, mode: str = 'w+b', buffering: int = -1, encoding: typing.Optional[str] = None,
    Severity: Major
    Found in scratchdir.py - About 1 hr to fix

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

          def spooled(self, max_size: int = 0, mode: str = 'w+b', buffering: int = -1,
      Severity: Major
      Found in scratchdir.py - About 1 hr to fix

        Function file has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def file(self, mode: str = 'w+b', buffering: int = -1, encoding: typing.Optional[str] = None,
        Severity: Major
        Found in scratchdir.py - About 50 mins to fix

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

              def __init__(self, prefix: str = '', suffix: str = '.scratchdir', base: typing.Optional[str] = None,
          Severity: Minor
          Found in scratchdir.py - About 35 mins to fix

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

                def secure(self, suffix: typing.Optional[str] = DEFAULT_SUFFIX,
            Severity: Minor
            Found in scratchdir.py - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language