mgeiger/gotime

View on GitHub

Showing 3 of 3 total issues

File providers.py has 270 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import time

import requests
from typing import Optional

Severity: Minor
Found in gotime/providers.py - About 2 hrs to fix

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

        def format_data(self, key, origin, destination, model=None, now_secs=None):
    Severity: Minor
    Found in gotime/maps.py - About 35 mins to fix

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

          def __init__(self, provider=None, distance=None, duration=None, steps=None, fuel_used=None):
      Severity: Minor
      Found in gotime/providers.py - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language