localstack/localstack

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

Summary

Maintainability
F
2 wks
Test Coverage

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

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

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

Severity: Major
Found in localstack/aws/api/cloudformation/__init__.py - About 1 wk to fix

    CloudformationApi has 82 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class CloudformationApi:
        service = "cloudformation"
        version = "2010-05-15"
    
        @handler("ActivateOrganizationsAccess")
    Severity: Major
    Found in localstack/aws/api/cloudformation/__init__.py - About 1 day to fix

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

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

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

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

          Function update_stack has 20 arguments (exceeds 4 allowed). Consider refactoring.
          Open

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

            Function create_stack has 20 arguments (exceeds 4 allowed). Consider refactoring.
            Open

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

              Function create_stack_set has 17 arguments (exceeds 4 allowed). Consider refactoring.
              Open

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

                Function delete_stack_instances has 10 arguments (exceeds 4 allowed). Consider refactoring.
                Open

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

                  Function update_stack_instances has 10 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

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

                    Function create_stack_instances has 10 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

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

                      Function list_stack_instance_resource_drifts has 10 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                There are no issues that match your filters.

                                                                                Category
                                                                                Status