localstack/localstack

View on GitHub
localstack-core/localstack/aws/api/lambda_/__init__.py

Summary

Maintainability
F
1 wk
Test Coverage

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

from datetime import datetime
from typing import IO, Dict, Iterable, Iterator, List, Optional, TypedDict, Union

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

Severity: Major
Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 5 days to fix

    LambdaApi has 66 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class LambdaApi:
        service = "lambda"
        version = "2015-03-31"
    
        @handler("AddLayerVersionPermission")
    Severity: Major
    Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 1 day to fix

      Function create_function has 26 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def create_function(
      Severity: Major
      Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 3 hrs to fix

        Function create_event_source_mapping has 25 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def create_event_source_mapping(
        Severity: Major
        Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 3 hrs to fix

          Function update_function_configuration has 21 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def update_function_configuration(
          Severity: Major
          Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 2 hrs to fix

            Function update_event_source_mapping has 18 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def update_event_source_mapping(
            Severity: Major
            Found in localstack-core/localstack/aws/api/lambda_/__init__.py - About 2 hrs to fix

              Function add_permission has 13 arguments (exceeds 4 allowed). Consider refactoring.
              Open

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

                Function update_function_code has 12 arguments (exceeds 4 allowed). Consider refactoring.
                Open

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

                  Function add_layer_version_permission has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        There are no issues that match your filters.

                                                                        Category
                                                                        Status