ramonhagenaars/jsons

View on GitHub
jsons/_multitasking.py

Summary

Maintainability
A
2 hrs
Test Coverage

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

def _fill(
Severity: Major
Found in jsons/_multitasking.py - About 1 hr to fix

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

    def _start_tasks(
    Severity: Major
    Found in jsons/_multitasking.py - About 50 mins to fix

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

      def multi_task(
      Severity: Minor
      Found in jsons/_multitasking.py - About 45 mins to fix

        Function "_fill" has 8 parameters, which is greater than the 7 authorized.
        Open

                func,
                list_to_fill: list,
                obj: Subscriptable,
                start: int,
                end: int,
        Severity: Major
        Found in jsons/_multitasking.py by sonar-python

        A long parameter list can indicate that a new structure should be created to wrap the numerous parameters or that the function is doing too many things.

        Noncompliant Code Example

        With a maximum number of 4 parameters:

        def do_something(param1, param2, param3, param4, param5):
            ...
        

        Compliant Solution

        def do_something(param1, param2, param3, param4):
            ...
        

        Line too long (81 > 79 characters)
        Open

                    args=(func, list_to_fill, obj, start, end, tasks_left, args, kwargs))
        Severity: Minor
        Found in jsons/_multitasking.py by pep8

        Limit all lines to a maximum of 79 characters.

        There are still many devices around that are limited to 80 character
        lines; plus, limiting windows to 80 characters makes it possible to
        have several windows side-by-side.  The default wrapping on such
        devices looks ugly.  Therefore, please limit all lines to a maximum
        of 79 characters. For flowing long blocks of text (docstrings or
        comments), limiting the length to 72 characters is recommended.
        
        Reports error E501.

        There are no issues that match your filters.

        Category
        Status