localstack/localstack

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

Summary

Maintainability
C
7 hrs
Test Coverage

File __init__.py has 265 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: Minor
Found in localstack/aws/api/sts/__init__.py - About 2 hrs to fix

    Function assume_role has 14 arguments (exceeds 4 allowed). Consider refactoring.
    Open

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

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

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

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

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

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

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

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

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

              There are no issues that match your filters.

              Category
              Status