localstack/localstack

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

Summary

Maintainability
F
1 wk
Test Coverage

File __init__.py has 1846 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: Major
Found in localstack/aws/api/route53/__init__.py - About 5 days to fix

    Route53Api has 70 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Route53Api:
        service = "route53"
        version = "2013-04-01"
    
        @handler("ActivateKeySigningKey")
    Severity: Major
    Found in localstack/aws/api/route53/__init__.py - About 1 day to fix

      Function update_health_check has 19 arguments (exceeds 4 allowed). Consider refactoring.
      Open

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            There are no issues that match your filters.

                                                            Category
                                                            Status