localstack/localstack

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

Summary

Maintainability
F
1 wk
Test Coverage

File __init__.py has 1532 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-core/localstack/aws/api/events/__init__.py - About 4 days to fix

    EventsApi has 57 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class EventsApi:
        service = "events"
        version = "2015-10-07"
    
        @handler("ActivateEventSource")
    Severity: Major
    Found in localstack-core/localstack/aws/api/events/__init__.py - About 1 day to fix

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                There are no issues that match your filters.

                                                                Category
                                                                Status