localstack/localstack

View on GitHub
localstack/aws/api/cloudcontrol/__init__.py

Summary

Maintainability
C
1 day
Test Coverage

File __init__.py has 292 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from datetime import datetime
from typing import List, Optional, TypedDict

from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler

Severity: Minor
Found in localstack/aws/api/cloudcontrol/__init__.py - About 3 hrs to fix

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

        def update_resource(
    Severity: Major
    Found in localstack/aws/api/cloudcontrol/__init__.py - About 1 hr to fix

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

          def list_resources(
      Severity: Major
      Found in localstack/aws/api/cloudcontrol/__init__.py - About 1 hr to fix

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

            def delete_resource(
        Severity: Major
        Found in localstack/aws/api/cloudcontrol/__init__.py - About 50 mins to fix

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

              def create_resource(
          Severity: Major
          Found in localstack/aws/api/cloudcontrol/__init__.py - About 50 mins to fix

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

                def get_resource(
            Severity: Minor
            Found in localstack/aws/api/cloudcontrol/__init__.py - About 45 mins to fix

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

                  def list_resource_requests(
              Severity: Minor
              Found in localstack/aws/api/cloudcontrol/__init__.py - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status