cgtobi/PyRMVtransport

View on GitHub

Showing 4 of 4 total issues

RMVjourney has 25 functions (exceeds 20 allowed). Consider refactoring.
Open

class RMVjourney:
    """A journey object to hold information about a journey."""

    def __init__(self, journey: objectify.ObjectifiedElement, now: datetime) -> None:
        """Initialize the journey object."""
Severity: Minor
Found in RMVtransport/rmvjourney.py - About 2 hrs to fix

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

        def __init__(
    Severity: Minor
    Found in RMVtransport/rmvtravel.py - About 35 mins to fix

      Using etree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace etree with the equivalent defusedxml package.
      Open

      from lxml import etree, objectify  # type: ignore
      
      
      Severity: Info
      Found in RMVtransport/rmvtransport.py by bandit

      Using objectify to parse untrusted XML data is known to be vulnerable to XML attacks. Replace objectify with the equivalent defusedxml package.
      Open

      from lxml import objectify  # type: ignore
      
      
      Severity: Info
      Found in RMVtransport/rmvjourney.py by bandit
      Severity
      Category
      Status
      Source
      Language