localstack/localstack

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

Summary

Maintainability
F
6 days
Test Coverage

File __init__.py has 1406 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/ses/__init__.py - About 3 days to fix

    SesApi has 71 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class SesApi:
        service = "ses"
        version = "2010-12-01"
    
        @handler("CloneReceiptRuleSet")
    Severity: Major
    Found in localstack/aws/api/ses/__init__.py - About 1 day to fix

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

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

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

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

          Function send_email has 11 arguments (exceeds 4 allowed). Consider refactoring.
          Open

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    There are no issues that match your filters.

                                    Category
                                    Status