bitranox/lib_shopware6_api

View on GitHub

Showing 7 of 7 total issues

File sub_media.py has 940 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# STDLIB
from functools import lru_cache
import hashlib
from os import PathLike
import pathlib
Severity: Major
Found in lib_shopware6_api/sub_media.py - About 2 days to fix

    File sub_product.py has 431 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # STDLIB
    from decimal import Decimal
    from functools import lru_cache
    import hashlib
    from typing import Any, Dict, List, Optional, Tuple, Union
    Severity: Minor
    Found in lib_shopware6_api/sub_product.py - About 6 hrs to fix

      Media has 35 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Media(object):
          def __init__(
              self, admin_client: Optional[Shopware6AdminAPIClientBase] = None, config: Optional[ConfShopware6ApiBase] = None, use_docker_test_container: bool = False
          ) -> None:
              """
      Severity: Minor
      Found in lib_shopware6_api/sub_media.py - About 4 hrs to fix

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

            def insert_product(
        Severity: Major
        Found in lib_shopware6_api/sub_product.py - About 1 hr to fix

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

              def update_media(
          Severity: Minor
          Found in lib_shopware6_api/sub_media.py - About 45 mins to fix

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

                def upsert_media(
            Severity: Minor
            Found in lib_shopware6_api/sub_media.py - About 45 mins to fix

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

                  def insert_media(
              Severity: Minor
              Found in lib_shopware6_api/sub_media.py - About 45 mins to fix
                Severity
                Category
                Status
                Source
                Language