Showing 3,140 of 3,140 total issues
File provider.py
has 1656 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import copy
import datetime
import logging
import os
from collections import defaultdict
File __init__.py
has 1612 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from typing import Dict, Iterator, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
AccessPolicy = str
ASLParserListener
has 206 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ASLParserListener(ParseTreeListener):
# Enter a parse tree produced by ASLParser#state_machine.
def enterState_machine(self, ctx:ASLParser.State_machineContext):
pass
File provider.py
has 1509 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import copy
import hashlib
import json
import logging
import re
File __init__.py
has 1491 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
File __init__.py
has 1484 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
File __init__.py
has 1475 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from typing import List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
AccountId = str
File serializer.py
has 1474 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""
Response serializers for the different AWS service protocols.
The module contains classes that take a service's response dict, and
given an operation model, serialize the HTTP response according to the
File __init__.py
has 1411 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
File __init__.py
has 1406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
File __init__.py
has 1367 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
File publisher.py
has 1251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import abc
import base64
import copy
import datetime
import hashlib
Function import_api_from_openapi_spec
has a Cognitive Complexity of 158 (exceeds 5 allowed). Consider refactoring. Open
Open
def import_api_from_openapi_spec(
rest_api: RestAPI, body: dict, context: RequestContext
) -> Optional[RestAPI]:
"""Import an API from an OpenAPI spec document"""
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File template_deployer.py
has 1237 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import base64
import json
import logging
import re
import traceback
File __init__.py
has 1233 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
IamApi
has 159 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class IamApi:
service = "iam"
version = "2010-05-08"
@handler("AddClientIDToOpenIDConnectProvider")
File ASLLexer.py
has 1198 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# Generated from ASLLexer.g4 by ANTLR 4.13.1
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
File helpers.py
has 1197 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import contextlib
import copy
import hashlib
import json
import logging
File provider.py
has 1180 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import base64
import copy
import datetime
import logging
import os
File __init__.py
has 1159 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler