AI Slop Code Risk Monitor

localstack/localstack

SlopCodeMonitor badge for localstack/localstack Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline

9.4 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for localstack/localstack, a Python project with 65,100 GitHub stars. SynthScan examined 945,571 lines of code across 3034 source files, recording 8447 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 9.4 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

9.4
Adjusted Signal
9.4
Raw Pattern Score
100%
Time Factor
2026-03-23
Last Push
65.1K
Stars
Python
Language
945.6K
Lines of Code
3.0K
Files
8.4K
Pattern Hits
2026-11-27
Scan Date
0.08
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 28.2/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 6854 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.0/100 · LOW

Are imports declared and package/API names verified? 694 finding(s).

Agent Over-Engineering Ratio 31.4/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 6992 finding(s).

PR Review Velocity Impact 41.5/100 · MEDIUM

Which changes need focused human review? 8447 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 6HIGH 233MEDIUM 245LOW 7963

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 8447 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers5855 hits · 5086 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py59def secondary_aws_client_factory(secondary_aws_session):CODE
LOWtests/conftest.py96def enable_stack_trace_for_tests():CODE
LOWtests/unit/test_cors.py15def test_allowed_cors_origins_different_ports_and_protocols(monkeypatch):CODE
LOWtests/unit/test_cors.py34def test_dynamic_allowed_cors_origins(monkeypatch):CODE
LOWtests/unit/test_cors.py44def test_dynamic_allowed_cors_origins_different_ports(monkeypatch):CODE
LOWtests/unit/test_cors.py65def test_dynamic_allowed_cors_origins_different_domains(monkeypatch):CODE
LOWtests/unit/conftest.py11def set_boto_test_credentials_and_region(monkeypatch):CODE
LOWtests/unit/test_common.py44 def test_isoformat_milliseconds(self):CODE
LOWtests/unit/test_common.py57 def test_parse_timestamp_timezone_aware(self, str_format):CODE
LOWtests/unit/test_common.py131 def test_mktime_millis_with_tz(self):CODE
LOWtests/unit/test_common.py233 def test_retry_raises_last_exception(self):CODE
LOWtests/unit/test_common.py255 def test_is_command_available(self):CODE
LOWtests/unit/test_common.py302 def test_parse_json_or_yaml_with_json(self):CODE
LOWtests/unit/test_common.py308 def test_parse_json_or_yaml_with_yaml(self):CODE
LOW⚡tests/unit/test_common.py585 def test_reserve_port_within_range(STRING
LOW⚡tests/unit/test_common.py591 def test_reserve_port_outside_range(STRING
LOW⚡tests/unit/test_common.py597 def test_reserve_any_port_within_range(STRING
LOW⚡tests/unit/test_common.py603 def test_reserve_port_all_reserved(STRING
LOW⚡tests/unit/test_common.py614 def test_reserve_same_port_twice(STRING
LOW⚡tests/unit/test_common.py621 def test_reserve_custom_expiry(STRING
LOW⚡tests/unit/test_common.py630 def test_check_is_port_reserved(STRING
LOWtests/unit/test_common.py320 def test_parse_json_or_yaml_with_invalid_syntax_returns_content(self):STRING
LOWtests/unit/test_common.py325 def test_parse_json_or_yaml_with_empty_string_returns_none(self):STRING
LOWtests/unit/test_common.py381 def test_fully_qualified_class_name(self):STRING
LOWtests/unit/test_common.py435 def test_replace_in_file_with_non_existing_path(self, tmp_path):STRING
LOWtests/unit/test_common.py539def test_save_load_file_with_permissions(tmp_path):STRING
LOWtests/unit/test_common.py553def test_save_load_file_with_changing_permissions(tmp_path):STRING
LOWtests/unit/test_common.py573def external_service_ports_manager():STRING
LOWtests/unit/test_common.py646 def test_list_smaller_than_max(self, paginated_list):STRING
LOWtests/unit/test_edge.py41def test_edge_tcp_proxy_does_not_terminate_on_connection_error():CODE
LOWtests/unit/test_misc.py31 def test_convert_yaml_date_strings(self):CODE
LOW⚡tests/unit/test_misc.py70 def test_port_mappings_single_protocol(self):CODE
LOW⚡tests/unit/test_misc.py75 def test_port_mappings_single_protocol_range(self):CODE
LOW⚡tests/unit/test_misc.py81 def test_port_mappings_multi_protocol(self):CODE
LOW⚡tests/unit/test_misc.py87 def test_port_mappings_multi_protocol_range(self):CODE
LOWtests/unit/test_misc.py139 def test_update_config_variable(self):CODE
LOWtests/unit/test_misc.py143 def test_async_parallelization(self):CODE
LOWtests/unit/test_dockerclient.py70 def test_parsing_with_defaults(self):CODE
LOWtests/unit/test_dockerclient.py330 def test_overlapping_port_ranges(self):STRING
LOWtests/unit/test_dockerclient.py342 def test_port_ranges_with_bind_host(self):STRING
LOWtests/unit/test_dockerclient.py354 def test_port_ranges_with_bind_host_to_dict(self):STRING
LOWtests/unit/test_dockerclient.py369 def test_many_to_one_adjacent_to_uniform(self):STRING
LOWtests/unit/test_dockerclient.py382 def test_adjacent_port_to_many_to_one(self):STRING
LOWtests/unit/test_dockerclient.py437 def test_extract_registry_from_various_image_formats(self, image_name, expected):CODE
LOWtests/unit/test_dockerclient.py450 def test_with_docker_global_image_prefix(self, image_name, expected, prefix, monkeypatch):CODE
LOWtests/unit/test_checksum.py12 def test_can_parse_standard_format(self):CODE
LOWtests/unit/test_checksum.py36 def test_parse_standard_format(self):STRING
LOWtests/unit/test_checksum.py84 def test_can_parse_bsd_format(self):CODE
LOWtests/unit/test_checksum.py142 def test_parse_mixed_algorithms(self):STRING
LOWtests/unit/test_checksum.py165 def test_can_parse_apache_bsd_format(self):CODE
LOWtests/unit/test_checksum.py180 def test_parse_apache_bsd_format_single_line(self):CODE
LOWtests/unit/test_checksum.py198 def test_parse_apache_bsd_format_multi_line(self):STRING
LOWtests/unit/test_checksum.py224 def test_parse_apache_bsd_format_with_spaces(self):STRING
LOWtests/unit/test_checksum.py243 def test_parse_apache_bsd_invalid_checksum(self):STRING
LOWtests/unit/test_checksum.py266 def test_parse_standard_format(self):CODE
LOWtests/unit/test_checksum.py288 def test_parse_apache_bsd_format(self):CODE
LOWtests/unit/test_checksum.py305 def test_parse_unknown_format(self):CODE
LOWtests/unit/test_moto.py6def test_get_dispatcher_for_path_with_optional_slashes():CODE
LOWtests/unit/test_moto.py11def test_get_dispatcher_for_non_existing_path_raises_not_implemented():CODE
LOWtests/unit/test_templating.py95 def test_quiet_return_function(self):STRING
5795 more matches not shown…
Empty Error Handlers145 hits · 725 pts
SeverityFileLineSnippetContext
HIGHtests/unit/utils/test_tcp_proxy.py43except OSError:CODE
HIGHtests/unit/aws/protocol/test_op_router.py27except NotFound:CODE
HIGHtests/integration/docker_utils/test_docker.py1074except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1087except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1268except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1285except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1298except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1334except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1624except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1672except ContainerException:CODE
HIGHtests/integration/docker_utils/test_docker.py1406except Exception:CODE
HIGHtests/integration/docker_utils/test_docker.py1427except Exception:CODE
HIGHtests/integration/docker_utils/test_docker.py1489except Exception:CODE
HIGHtests/aws/conftest.py175except ImportError:CODE
HIGHtests/aws/services/lambda_/test_lambda_unzip_crash.py59except RuntimeError:CODE
HIGH…ces/lambda_/functions/lambda_sqs_batch_item_failure.py56except Exception:CODE
HIGH…sts/aws/services/cloudcontrol/test_cloudcontrol_api.py600except Exception:CODE
HIGHtests/aws/services/logs/test_logs_export_tasks.py101except ClientError:CODE
HIGHtests/aws/services/logs/test_logs_export_tasks.py151except ClientError:CODE
HIGHtests/aws/services/logs/test_logs_export_tasks.py224except ClientError:CODE
HIGH…ws/services/events/test_events_cross_account_region.py295except Exception:CODE
HIGH…ws/services/events/test_events_cross_account_region.py310except Exception:CODE
HIGHtests/aws/services/events/test_events.py742except Exception:CODE
HIGHtests/aws/services/events/test_events.py833except Exception:CODE
HIGHtests/aws/services/events/test_events.py654except Exception:CODE
HIGHtests/aws/services/events/test_events.py786except Exception:CODE
HIGHtests/aws/services/events/test_events.py854except Exception:CODE
HIGH…rvices/cloudformation/resources/test_cloudformation.py18except ImportError:CODE
HIGHtests/aws/services/cloudformation/resources/test_sns.py456except aws_client.sns.exceptions.NotFoundException:CODE
HIGH…ervices/cloudformation/api/test_reference_resolving.py160except Exception:CODE
HIGH…functions/v2/assign/test_assign_reference_variables.py350except json.JSONDecodeError:CODE
HIGH…ts/aws/services/apigateway/test_apigateway_extended.py34except aws_client.apigateway.exceptions.NotFoundException:CODE
HIGHtests/aws/services/apigateway/test_apigateway_api.py2780except aws_client.apigateway.exceptions.NotFoundException:CODE
HIGHtests/aws/services/ec2/test_ec2.py68except Exception:CODE
HIGHlocalstack-core/localstack/config.py345except Exception:CODE
HIGHlocalstack-core/localstack/config.py386except FileNotFoundError:CODE
HIGHlocalstack-core/localstack/config.py203except Exception:CODE
HIGHlocalstack-core/localstack/runtime/shutdown.py39except ValueError:CODE
HIGHlocalstack-core/localstack/runtime/current.py36except ValueError:CODE
HIGHlocalstack-core/localstack/runtime/patches.py51except Exception:CODE
HIGHlocalstack-core/localstack/runtime/patches.py27except KeyError:CODE
HIGHlocalstack-core/localstack/utils/bootstrap.py991except NoSuchContainer:CODE
HIGHlocalstack-core/localstack/utils/time.py61except ValueError:CODE
HIGHlocalstack-core/localstack/utils/files.py165except Exception:CODE
HIGHlocalstack-core/localstack/utils/files.py276except PermissionError:CODE
HIGHlocalstack-core/localstack/utils/files.py271except Exception:CODE
HIGHlocalstack-core/localstack/utils/files.py352except Exception:CODE
HIGHlocalstack-core/localstack/utils/files.py297except Exception:CODE
HIGHlocalstack-core/localstack/utils/run.py144except Exception:CODE
HIGHlocalstack-core/localstack/utils/run.py182except Exception:CODE
HIGHlocalstack-core/localstack/utils/asyncio.py31except KeyError:CODE
HIGHlocalstack-core/localstack/utils/asyncio.py153except Exception:CODE
HIGHlocalstack-core/localstack/utils/net.py481except OSError:CODE
HIGHlocalstack-core/localstack/utils/net.py230except ValueError:CODE
HIGHlocalstack-core/localstack/utils/net.py390except PortNotAvailableException:CODE
HIGHlocalstack-core/localstack/utils/threads.py155except Exception:CODE
HIGHlocalstack-core/localstack/utils/collections.py137except StopIteration:CODE
HIGHlocalstack-core/localstack/utils/http.py159except Exception:CODE
HIGHlocalstack-core/localstack/utils/testutil.py443except Exception:CODE
HIGHlocalstack-core/localstack/utils/testutil.py237except Exception:CODE
85 more matches not shown…
Excessive Try-Catch Wrapping570 hits · 604 pts
SeverityFileLineSnippetContext
LOWtests/unit/http_/test_asgi.py300 except Exception:CODE
LOWtests/bootstrap/resources/apigw_handler.py36 except Exception as e:CODE
LOWtests/bootstrap/resources/event_handler.py32 except Exception as e:CODE
MEDIUMtests/bootstrap/resources/event_handler.py33 print(f"Error fetching cluster health status: {e!r}")CODE
LOWtests/integration/docker_utils/test_docker.py110 except Exception:CODE
LOWtests/integration/docker_utils/test_docker.py211 except Exception:CODE
LOWtests/integration/docker_utils/test_docker.py1406 except Exception:CODE
LOWtests/integration/docker_utils/test_docker.py1427 except Exception:CODE
LOWtests/integration/docker_utils/test_docker.py1489 except Exception:CODE
LOWtests/integration/docker_utils/test_docker.py1516 except Exception as e:CODE
LOWtests/aws/test_serverless.py77 except Exception:CODE
LOWtests/aws/templates/pyplate_deploy_template.yml86 except Exception as e:CODE
LOW⚡tests/aws/services/kinesis/conftest.py29 except Exception:CODE
LOWtests/aws/services/lambda_/test_lambda_performance.py322 except Exception as e:CODE
LOWtests/aws/services/lambda_/test_lambda_performance.py460 except Exception as e:CODE
LOWtests/aws/services/lambda_/test_lambda_performance.py611 except Exception as e:CODE
LOWtests/aws/services/lambda_/test_lambda_api.py1680 except Exception as e:CODE
LOWtests/aws/services/lambda_/test_lambda_api.py1694 except Exception as e:CODE
MEDIUMtests/aws/services/lambda_/test_lambda.py1346def _is_url_config_deleted():CODE
LOWtests/aws/services/lambda_/test_lambda.py2119 except Exception:CODE
LOWtests/aws/services/lambda_/test_lambda.py2821 except Exception:CODE
LOWtests/aws/services/lambda_/test_lambda.py3259 except Exception:CODE
LOWtests/aws/services/lambda_/functions/lambda_timeout.py10 except Exception as e:CODE
MEDIUMtests/aws/services/lambda_/functions/lambda_timeout.py5def handler(event, context):CODE
LOW…s/services/lambda_/functions/lambda_sqs_integration.py37 except Exception as e:CODE
LOW…s/aws/services/lambda_/functions/lambda_integration.py61 except Exception:CODE
LOW…s/aws/services/lambda_/functions/lambda_timeout_env.py28 except Exception as e:CODE
LOW…ces/lambda_/functions/lambda_sqs_batch_item_failure.py56 except Exception:CODE
LOW…ws/services/lambda_/functions/host_prefix_operation.py28 except Exception as e:CODE
LOW…sts/aws/services/secretsmanager/test_secretsmanager.py147 except Exception as ex:CODE
LOW…aws/services/cloudwatch/test_cloudwatch_performance.py82 except Exception as e:STRING
LOW…aws/services/cloudwatch/test_cloudwatch_performance.py183 except Exception as e:STRING
LOWtests/aws/services/cloudwatch/test_cloudwatch.py2838 except Exception as e:CODE
LOWtests/aws/services/s3/test_s3_concurrency.py29 except Exception:CODE
LOWtests/aws/services/s3/test_s3_concurrency.py60 except Exception:CODE
LOWtests/aws/services/s3/test_s3_concurrency.py90 except Exception:CODE
LOWtests/aws/services/s3/test_s3_concurrency.py125 except Exception:CODE
LOWtests/aws/services/s3/test_s3_notifications_sqs.py174 except Exception as e:CODE
LOWtests/aws/services/s3/test_s3.py260 except Exception:CODE
LOW⚡tests/aws/services/sns/test_sns.py80 except Exception as e:CODE
LOW⚡tests/aws/services/sns/test_sns.py90 except Exception as e:CODE
LOW⚡tests/aws/services/sns/test_sns.py99 except Exception as e:CODE
LOWtests/aws/services/sns/test_sns.py119 except Exception as e:CODE
LOWtests/aws/services/scheduler/conftest.py31 except Exception:CODE
LOWtests/aws/services/scheduler/conftest.py62 except Exception:CODE
MEDIUMtests/aws/services/dynamodb/test_dynamodb.py2426def wait_for_continuous_backend():CODE
LOW⚡tests/aws/services/dynamodb/test_dynamodb.py2435 except Exception: # noqaCODE
MEDIUM…s/aws/services/route53resolver/test_route53resolver.py77def _is_endpoint_deleted():CODE
LOW…s/aws/services/route53resolver/test_route53resolver.py82 except Exception:CODE
LOW…sts/aws/services/cloudcontrol/test_cloudcontrol_api.py42 except Exception:CODE
LOW…sts/aws/services/cloudcontrol/test_cloudcontrol_api.py67 except Exception:CODE
LOW…sts/aws/services/cloudcontrol/test_cloudcontrol_api.py600 except Exception:CODE
LOW⚡tests/aws/services/iam/test_iam.py1367 except Exception as e:CODE
LOWtests/aws/services/iam/test_iam.py953 except Exception:STRING
LOWtests/aws/services/logs/test_logs_destinations.py68 except Exception:CODE
MEDIUMtests/aws/services/logs/test_logs_destinations.py61def _assume_role():CODE
LOWtests/aws/services/events/conftest.py54 except Exception as e:CODE
LOWtests/aws/services/events/conftest.py250 except Exception as e:CODE
LOWtests/aws/services/events/conftest.py256 except Exception as e:CODE
LOW⚡tests/aws/services/events/conftest.py278 except Exception as e:CODE
510 more matches not shown…
Unused Imports608 hits · 496 pts
SeverityFileLineSnippetContext
LOWtests/bootstrap/resources/apigw_handler.py8CODE
LOW…aws/scenario/mythical_mysfits/test_mythical_misfits.py16CODE
LOWtests/aws/services/lambda_/test_lambda_destinations.py24CODE
LOWtests/aws/services/cloudwatch/conftest.py12CODE
LOW…sts/aws/services/cloudwatch/test_cloudwatch_metrics.py12CODE
LOW…sts/aws/services/cloudwatch/test_cloudwatch_metrics.py13CODE
LOW…aws/services/cloudwatch/test_cloudwatch_performance.py15CODE
LOWtests/aws/services/cloudwatch/test_cloudwatch.py31CODE
LOWtests/aws/services/s3/test_s3_notifications_sqs.py20CODE
LOWtests/aws/services/s3/test_s3_notifications_sqs.py21CODE
LOWtests/aws/services/s3/test_s3_notifications_sqs.py22CODE
LOWtests/aws/services/s3/test_s3_notifications_sns.py16CODE
LOWtests/aws/services/s3/test_s3_notifications_sns.py17CODE
LOWtests/aws/services/s3/test_s3_notifications_sns.py18CODE
LOWtests/aws/services/s3/test_s3_notifications_sns.py19CODE
LOWtests/aws/services/s3/test_s3.py85CODE
LOWtests/aws/services/sqs/test_sqs.py38CODE
LOWtests/aws/services/sqs/utils.py6CODE
LOW…rvices/cloudformation/resources/test_cloudformation.py17CODE
LOWtests/aws/services/apigateway/conftest.py24CODE
LOWtests/aws/services/apigateway/test_apigateway_api.py30CODE
LOWtests/aws/services/apigateway/test_apigateway_api.py30CODE
LOWlocalstack-core/localstack/runtime/__init__.py1CODE
LOWlocalstack-core/localstack/runtime/current.py10CODE
LOWlocalstack-core/localstack/runtime/server/__init__.py1CODE
LOWlocalstack-core/localstack/utils/bootstrap.py1CODE
LOWlocalstack-core/localstack/utils/run.py18CODE
LOWlocalstack-core/localstack/utils/docker_utils.py30CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/async_utils.py2CODE
LOWlocalstack-core/localstack/utils/common.py4CODE
LOWlocalstack-core/localstack/utils/common.py4CODE
LOWlocalstack-core/localstack/utils/common.py4CODE
LOWlocalstack-core/localstack/utils/common.py4CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py7CODE
LOWlocalstack-core/localstack/utils/common.py27CODE
LOWlocalstack-core/localstack/utils/common.py27CODE
548 more matches not shown…
Deep Nesting338 hits · 281 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils/test_tcp_proxy.py30CODE
LOWtests/unit/utils/test_tcp_proxy.py37CODE
LOW…s/unit/utils/analytics/test_service_call_aggregator.py16CODE
LOWtests/unit/aws/test_service_router.py43CODE
LOW…s/aws/services/lambda_/functions/lambda_integration.py46CODE
LOW…/services/lambda_/functions/lambda_aws_proxy_format.py4CODE
LOW…s/aws/services/lambda_/functions/lambda_timeout_env.py7CODE
LOW…vices/secretsmanager/functions/lambda_rotate_secret.py28CODE
LOWtests/aws/services/kms/test_kms.py41CODE
LOWtests/aws/services/s3/test_s3.py11898CODE
LOWtests/aws/services/dynamodb/test_dynamodb.py1053CODE
LOW…functions/v2/assign/test_assign_reference_variables.py333CODE
LOW…functions/v2/assign/test_assign_reference_variables.py341CODE
LOWtests/aws/services/apigateway/test_apigateway_import.py141CODE
LOWtests/aws/services/apigateway/test_apigateway_api.py52CODE
LOWscripts/capture_notimplemented_responses.py56CODE
LOWscripts/capture_notimplemented_responses.py247CODE
LOWscripts/update_cfn_resources.py93CODE
LOWscripts/gather_outdated_snapshots.py8CODE
LOWscripts/gather_outdated_snapshots.py29CODE
LOWscripts/tinybird/retrieve_legacy_data_from_circleci.py49CODE
LOW…ripts/tinybird/upload_raw_test_metrics_and_coverage.py187CODE
LOWscripts/metrics_coverage/diff_metrics_coverage.py27CODE
LOWscripts/metrics_coverage/diff_metrics_coverage.py60CODE
LOWscripts/metrics_coverage/diff_metrics_coverage.py119CODE
LOWlocalstack-core/localstack/config.py304CODE
LOWlocalstack-core/localstack/runtime/init.py140CODE
LOWlocalstack-core/localstack/runtime/init.py190CODE
LOWlocalstack-core/localstack/utils/bootstrap.py547CODE
LOWlocalstack-core/localstack/utils/bootstrap.py740CODE
LOWlocalstack-core/localstack/utils/bootstrap.py748CODE
LOWlocalstack-core/localstack/utils/run.py26CODE
LOWlocalstack-core/localstack/utils/run.py266CODE
LOWlocalstack-core/localstack/utils/run.py102CODE
LOWlocalstack-core/localstack/utils/checksum.py232CODE
LOWlocalstack-core/localstack/utils/checksum.py127CODE
LOW…calstack-core/localstack/utils/container_networking.py52CODE
LOWlocalstack-core/localstack/utils/openapi.py38CODE
LOWlocalstack-core/localstack/utils/net.py56CODE
LOWlocalstack-core/localstack/utils/net.py365CODE
LOWlocalstack-core/localstack/utils/archives.py98CODE
LOWlocalstack-core/localstack/utils/archives.py174CODE
LOWlocalstack-core/localstack/utils/threads.py121CODE
LOWlocalstack-core/localstack/utils/crypto.py42CODE
LOWlocalstack-core/localstack/utils/collections.py452CODE
LOWlocalstack-core/localstack/utils/collections.py486CODE
LOWlocalstack-core/localstack/utils/http.py176CODE
LOWlocalstack-core/localstack/utils/scheduler.py160CODE
LOWlocalstack-core/localstack/utils/testutil.py72CODE
LOWlocalstack-core/localstack/utils/testutil.py389CODE
LOWlocalstack-core/localstack/utils/testutil.py410CODE
LOWlocalstack-core/localstack/utils/testutil.py454CODE
LOW…ack-core/localstack/utils/kinesis/kinesis_connector.py56CODE
LOW…ack-core/localstack/utils/kinesis/kinesis_connector.py93CODE
LOW…e/localstack/utils/container_utils/container_client.py193CODE
LOW…e/localstack/utils/container_utils/container_client.py1329CODE
LOW…/localstack/utils/container_utils/docker_sdk_client.py159CODE
LOW…/localstack/utils/container_utils/docker_sdk_client.py637CODE
LOW…/localstack/utils/container_utils/docker_sdk_client.py937CODE
LOWlocalstack-core/localstack/utils/server/tcp_proxy.py43CODE
278 more matches not shown…
Self-Referential Comments94 hits · 272 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/packages/test_api.py90 # Create a single instance of the installer (by default single instance installer's install methods are mutex)COMMENT
MEDIUM⚡tests/unit/packages/test_api.py100 # Create a new event and set it as the new event to wait forCOMMENT
MEDIUM⚡tests/unit/packages/test_api.py118 # Create the two installers with the same shared lockCOMMENT
MEDIUM⚡tests/unit/packages/test_api.py127 # Create a new event and set it as the new event for installer 2 to wait forCOMMENT
MEDIUMtests/unit/aws/test_service_router.py215 # Create a dummy request for the service routerCOMMENT
MEDIUMtests/unit/aws/protocol/test_serializer.py1845 # Create the response which contains the generatorCOMMENT
MEDIUMtests/unit/aws/protocol/test_serializer.py1860 # Create the response which contains the generatorCOMMENT
MEDIUM…sts/unit/services/apigateway/test_handler_exception.py73 # Create an UnauthorizedError exception with no Gateway Response configuredCOMMENT
MEDIUM…sts/unit/services/apigateway/test_handler_exception.py92 # Create an UnauthorizedError exception with DEFAULT_4xx configuredCOMMENT
MEDIUM…sts/unit/services/apigateway/test_handler_exception.py111 # Create an UnauthorizedError exception with UNAUTHORIZED configuredCOMMENT
MEDIUM…sts/unit/services/apigateway/test_handler_exception.py128 # Create an AccessDeniedError exception with no Gateway Response configuredCOMMENT
MEDIUMtests/integration/test_stores.py11 # Create a resource in Moto backendCOMMENT
MEDIUMtests/integration/test_stores.py17 # Create a resource in LocalStack storeCOMMENT
MEDIUMtests/integration/docker_utils/test_docker.py1578 # Create a custom Dockerfile that creates an anonymous volumeSTRING
MEDIUM…dk_templates/MythicalMisfits/MythicalMisfitsStack.json146 "ZipFile": "# Source adapted from: https://github.com/aws-samples/aws-modern-application-workshop/blob/python-CODE
MEDIUM…thical_mysfits/artefacts/functions/stream_processor.py54# The below method will serve as the "handler" for the Lambda function. TheCOMMENT
MEDIUMtests/aws/scenario/bookstore/functions/search.py47 # Create the response and add some extra content to support CORSCOMMENT
MEDIUMtests/aws/services/lambda_/test_lambda_api.py2845 # Create an SQS queue and pass it as an event source for the mappingCOMMENT
MEDIUMtests/aws/services/lambda_/test_lambda_api.py4902 # Create a URL for an unpublished functionCOMMENT
MEDIUMtests/aws/services/lambda_/test_lambda.py1312 # Create an aliased URLSTRING
MEDIUM⚡tests/aws/services/kms/test_kms.py2648 # Create a key with invalid key usageCOMMENT
MEDIUM⚡tests/aws/services/kms/test_kms.py2656 # Create a key with invalid key specCOMMENT
MEDIUM⚡tests/aws/services/kms/test_kms.py2661 # Create a key with invalid key agreement algorithmCOMMENT
MEDIUM⚡tests/aws/services/kms/test_kms.py2668 # Create a symmetric and try to derive the shared secretCOMMENT
MEDIUMtests/aws/services/kms/test_kms.py2773 # Create the keys in the primary AWS account. They will only be referred to by their ARNs hereonCOMMENT
MEDIUMtests/aws/services/s3/test_s3_api.py3235 # Create a new destination objectCOMMENT
MEDIUMtests/aws/services/sns/test_sns.py4729 # Create an Apple platform applicationCOMMENT
MEDIUM⚡tests/aws/services/dynamodb/test_dynamodb.py2328 # Create a table in the `us-east-1` regionCOMMENT
MEDIUMtests/aws/services/dynamodb/test_dynamodb.py95 # Create a large amount of itemsCOMMENT
MEDIUM⚡tests/aws/services/sqs/test_sqs.py5543 # Create a queue using primary test credentialsCOMMENT
MEDIUM⚡tests/aws/services/sqs/test_sqs.py5546 # Create a client configured with secondary test credentialsCOMMENT
MEDIUM…iders/templates/sqs_fifo_queue_required_properties.yml2# Define an SQS FIFO Queue with only the required properties set. All other properties willCOMMENT
MEDIUM…_providers/templates/sqs_fifo_queue_all_properties.yml2# Define an SQS FIFO Queue with all possible properties set to valid values.COMMENT
MEDIUM…_providers/templates/sqs_fifo_queue_with_name_only.yml2# Define an SQS FIFO Queue with only the QueueName attribute set.COMMENT
MEDIUMtests/aws/services/iam/test_iam.py1101 # Create a proper credential for codecommitCOMMENT
MEDIUMtests/aws/services/iam/test_iam.py1132 # Create a credentialCOMMENT
MEDIUMtests/aws/services/logs/test_logs_export_tasks.py135 # Create an export taskCOMMENT
MEDIUMtests/aws/services/logs/test_logs_resource_policies.py40 # Create a log group to use its ARN in the policyCOMMENT
MEDIUMtests/aws/services/logs/test_logs_resource_policies.py181 # Create the maximum number of resource policiesCOMMENT
MEDIUMtests/aws/services/logs/test_logs_resource_policies.py203 # Create the maximum number of resource policiesCOMMENT
MEDIUM…ts/aws/services/events/test_x_ray_trace_propagation.py111 # Create an IAM Role for EventBridge to invoke API GatewayCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py225 # Create a blocking event to control when the handler can respondCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py228 # Create an endpoint that blocks until the event is setCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py421 # Create the Lambda function with the correct handlerCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py437 # Create a resource under the rootCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py934 # Create a Kinesis streamCOMMENT
MEDIUMtests/aws/services/events/test_events_targets.py969 # Create an event busCOMMENT
MEDIUMtests/aws/services/events/test_events.py400 # Create a queue and get its ARNCOMMENT
MEDIUMtests/aws/services/events/test_events.py1760 # Create an SQS queue to use as a targetCOMMENT
MEDIUMtests/aws/services/events/test_events.py1765 # Create an event bus if using custom busCOMMENT
MEDIUMtests/aws/services/events/test_events.py1793 # Create a rule targeting a different resource (to verify filtering)COMMENT
MEDIUMtests/aws/services/events/test_events.py1824 # Create an SQS queue to use as a targetCOMMENT
MEDIUMtests/aws/services/events/test_events.py1829 # Create an event bus if using custom busCOMMENT
MEDIUM…rvices/cloudformation/test_change_set_global_macros.py127 # Create the macro to be used in the first version of the template.COMMENT
MEDIUM…rvices/cloudformation/test_change_set_global_macros.py145 # Create the first version of the stack.COMMENT
MEDIUM…rvices/cloudformation/test_change_set_global_macros.py208 # Create the macro to be used in the second version of the template.COMMENT
MEDIUM…ws/services/stepfunctions/v2/callback/test_callback.py840 # Create the child state machine, which receives the parent's TaskToken, forwards it to the SendTaskSuccessCOMMENT
MEDIUM…ws/services/stepfunctions/v2/callback/test_callback.py852 # Create the parent state machine, which starts the child state machine with a sync integration pattern.COMMENT
MEDIUMtests/aws/services/apigateway/test_apigateway_common.py1062 # Create a REST API with the apiKeySource set to "HEADER"STRING
MEDIUM⚡tests/aws/services/apigateway/test_apigateway_api.py2876 # Create the response for method GET /petsSTRING
34 more matches not shown…
Cross-File Repetition52 hits · 260 pts
SeverityFileLineSnippetContext
HIGH…/services/apigateway/test_handler_response_enricher.py0create a context populated with what we would expect to receive from the chain at runtime. we assume that the parser andSTRING
HIGH…ervices/apigateway/test_handler_integration_request.py0create a context populated with what we would expect to receive from the chain at runtime. we assume that the parser andSTRING
HIGH…services/apigateway/test_handler_api_key_validation.py0create a context populated with what we would expect to receive from the chain at runtime. we assume that the parser andSTRING
HIGH…rvices/apigateway/test_handler_integration_response.py0create a context populated with what we would expect to receive from the chain at runtime. we assume that the parser andSTRING
HIGH…it/services/apigateway/test_handler_method_response.py0create a context populated with what we would expect to receive from the chain at runtime. we assume that the parser andSTRING
HIGH…/services/apigateway/test_handler_response_enricher.py0returns a dummy integration response handler invoker for testing.STRING
HIGH…rvices/apigateway/test_handler_integration_response.py0returns a dummy integration response handler invoker for testing.STRING
HIGH…it/services/apigateway/test_handler_method_response.py0returns a dummy integration response handler invoker for testing.STRING
HIGH…s/resource_providers/test_aws_sqs_queueinlinepolicy.py0helper function to deploy a cloudformation stack using a template file. this exists to reduce boilerplate in the test caSTRING
HIGH…ces/sqs/resource_providers/test_aws_sqs_queuepolicy.py0helper function to deploy a cloudformation stack using a template file. this exists to reduce boilerplate in the test caSTRING
HIGH…/services/sqs/resource_providers/test_aws_sqs_queue.py0helper function to deploy a cloudformation stack using a template file. this exists to reduce boilerplate in the test caSTRING
HIGH…calstack-core/localstack/services/dynamodb/provider.py0modify the context region and then forward request to dynamodb local. this is used for operations impacted by global tabSTRING
HIGH…stack-core/localstack/services/dynamodb/v2/provider.py0modify the context region and then forward request to dynamodb local. this is used for operations impacted by global tabSTRING
HIGH…ore/localstack/services/dynamodbstreams/v2/provider.py0modify the context region and then forward request to dynamodb local. this is used for operations impacted by global tabSTRING
HIGH…gateway/resource_providers/aws_apigateway_usageplan.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…igateway/resource_providers/aws_apigateway_resource.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_model.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…ateway/resource_providers/aws_apigateway_deployment.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_stage.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…/resource_providers/aws_apigateway_requestvalidator.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…apigateway/resource_providers/aws_apigateway_method.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…y/resource_providers/aws_apigateway_basepathmapping.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…eway/resource_providers/aws_apigateway_usageplankey.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…pigateway/resource_providers/aws_apigateway_account.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…apigateway/resource_providers/aws_apigateway_apikey.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…pigateway/resource_providers/aws_apigateway_restapi.py0fetch resource information iam permissions required: - apigateway:getSTRING
HIGH…gateway/resource_providers/aws_apigateway_usageplan.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…igateway/resource_providers/aws_apigateway_resource.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_stage.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…/resource_providers/aws_apigateway_requestvalidator.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…apigateway/resource_providers/aws_apigateway_method.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…y/resource_providers/aws_apigateway_basepathmapping.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…eway/resource_providers/aws_apigateway_usageplankey.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…apigateway/resource_providers/aws_apigateway_apikey.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…pigateway/resource_providers/aws_apigateway_restapi.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…y/resource_providers/aws_apigateway_gatewayresponse.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_model.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…ateway/resource_providers/aws_apigateway_deployment.py0delete a resource iam permissions required: - apigateway:get - apigateway:deleteSTRING
HIGH…gateway/resource_providers/aws_apigateway_usageplan.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…y/resource_providers/aws_apigateway_gatewayresponse.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…igateway/resource_providers/aws_apigateway_resource.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_model.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…ateway/resource_providers/aws_apigateway_deployment.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…/apigateway/resource_providers/aws_apigateway_stage.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…apigateway/resource_providers/aws_apigateway_apikey.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…/resource_providers/aws_apigateway_requestvalidator.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…apigateway/resource_providers/aws_apigateway_method.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…y/resource_providers/aws_apigateway_basepathmapping.py0update a resource iam permissions required: - apigateway:patchSTRING
HIGH…services/ec2/resource_providers/aws_ec2_dhcpoptions.py0update a resource iam permissions required: - ec2:describenetworkacls - ec2:deletetags - ec2:createtagsSTRING
HIGH…/services/ec2/resource_providers/aws_ec2_routetable.py0update a resource iam permissions required: - ec2:describenetworkacls - ec2:deletetags - ec2:createtagsSTRING
HIGH…ices/ec2/resource_providers/aws_ec2_internetgateway.py0update a resource iam permissions required: - ec2:describenetworkacls - ec2:deletetags - ec2:createtagsSTRING
HIGH…/services/ec2/resource_providers/aws_ec2_networkacl.py0update a resource iam permissions required: - ec2:describenetworkacls - ec2:deletetags - ec2:createtagsSTRING
Decorative Section Separators70 hits · 234 pts
SeverityFileLineSnippetContext
MEDIUMtests/aws/test_integration.py759# ---------------COMMENT
MEDIUMtests/aws/test_integration.py761# ---------------COMMENT
MEDIUM…scenario/mythical_mysfits/stacks/mysfits_core_stack.py56 # ================================================================================================COMMENT
MEDIUM…scenario/mythical_mysfits/stacks/mysfits_core_stack.py58 # ================================================================================================COMMENT
MEDIUM…scenario/mythical_mysfits/stacks/mysfits_core_stack.py75 # ================================================================================================COMMENT
MEDIUM…scenario/mythical_mysfits/stacks/mysfits_core_stack.py77 # ================================================================================================COMMENT
MEDIUM…ces/stepfunctions/templates/assign/assign_templates.py100 # ----------------------------------COMMENT
MEDIUM…ces/stepfunctions/templates/assign/assign_templates.py102 # ----------------------------------COMMENT
MEDIUMlocalstack-core/localstack/utils/bootstrap.py251# --------------COMMENT
MEDIUMlocalstack-core/localstack/utils/bootstrap.py253# --------------COMMENT
MEDIUMlocalstack-core/localstack/utils/bootstrap.py1382# ---------------COMMENT
MEDIUMlocalstack-core/localstack/utils/bootstrap.py1384# ---------------COMMENT
MEDIUM…ck-core/localstack/utils/cloudwatch/cloudwatch_util.py17# ---------------COMMENT
MEDIUM…ck-core/localstack/utils/cloudwatch/cloudwatch_util.py19# ---------------COMMENT
MEDIUM…ck-core/localstack/utils/cloudwatch/cloudwatch_util.py204# ---------------COMMENT
MEDIUM…ck-core/localstack/utils/cloudwatch/cloudwatch_util.py206# ---------------COMMENT
MEDIUMlocalstack-core/localstack/services/plugins.py32# -----------------COMMENT
MEDIUMlocalstack-core/localstack/services/plugins.py34# -----------------COMMENT
MEDIUMlocalstack-core/localstack/services/plugins.py669# -----------------------------COMMENT
MEDIUMlocalstack-core/localstack/services/plugins.py671# -----------------------------COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py2173 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py2175 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py2576 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py2578 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py3046 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py3048 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py3560 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py3562 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py4157 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py4159 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py4427 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/lambda_/provider.py4429 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py2855 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py2857 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3243 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3245 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3283 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3285 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3880 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3882 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py4341 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py4343 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py4600 # =======================================COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py4602 # =======================================COMMENT
MEDIUM⚡localstack-core/localstack/services/kms/provider.py1773# ---------------COMMENT
MEDIUM⚡localstack-core/localstack/services/kms/provider.py1775# ---------------COMMENT
MEDIUM⚡…ck-core/localstack/services/cloudformation/provider.py1086 # =======================================COMMENT
MEDIUM⚡…ck-core/localstack/services/cloudformation/provider.py1088 # =======================================COMMENT
MEDIUM…e/localstack/services/cloudformation/service_models.py50 # ----------------------COMMENT
MEDIUM…e/localstack/services/cloudformation/service_models.py52 # ----------------------COMMENT
MEDIUM…e/localstack/services/cloudformation/service_models.py81 # ---------------------COMMENT
MEDIUM…e/localstack/services/cloudformation/service_models.py83 # ---------------------COMMENT
MEDIUM…ore/localstack/services/cloudformation/engine/types.py4# ---------------------COMMENT
MEDIUM…ore/localstack/services/cloudformation/engine/types.py6# ---------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py78# ---------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py80# ---------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py886# -----------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py888# -----------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py965 # ----------------------------COMMENT
MEDIUM⚡…ck/services/cloudformation/engine/template_deployer.py967 # ----------------------------COMMENT
10 more matches not shown…
AI Structural Patterns238 hits · 167 pts
SeverityFileLineSnippetContext
LOWtests/aws/services/kinesis/test_kinesis.py71CODE
LOWtests/aws/services/cloudwatch/utils.py79CODE
LOWtests/aws/services/sns/test_sns.py1483CODE
LOWtests/aws/services/logs/test_logs_queries.py109CODE
LOWtests/aws/services/cloudformation/resources/test_sns.py96CODE
LOW…aws/services/stepfunctions/v2/test_stepfunctions_v2.py258CODE
LOWtests/aws/services/apigateway/conftest.py83CODE
LOWtests/aws/services/apigateway/test_apigateway_basic.py1209CODE
LOWtests/aws/services/apigateway/test_apigateway_import.py258CODE
LOWlocalstack-core/localstack/utils/bootstrap.py178CODE
LOWlocalstack-core/localstack/utils/run.py26CODE
LOWlocalstack-core/localstack/utils/run.py213CODE
LOWlocalstack-core/localstack/utils/http.py66CODE
LOWlocalstack-core/localstack/utils/http.py164CODE
LOWlocalstack-core/localstack/utils/testutil.py184CODE
LOWlocalstack-core/localstack/utils/testutil.py283CODE
LOWlocalstack-core/localstack/utils/testutil.py366CODE
LOWlocalstack-core/localstack/utils/objects.py176CODE
LOWlocalstack-core/localstack/utils/json.py169CODE
LOW…e/localstack/utils/container_utils/container_client.py1020CODE
LOW…e/localstack/utils/container_utils/container_client.py1059CODE
LOW…e/localstack/utils/container_utils/container_client.py1185CODE
LOW…e/localstack/utils/container_utils/container_client.py1329CODE
LOW…/localstack/utils/container_utils/docker_cmd_client.py817CODE
LOW…/localstack/utils/container_utils/docker_sdk_client.py721CODE
LOW…/localstack/utils/container_utils/docker_sdk_client.py858CODE
LOW…lstack-core/localstack/utils/aws/message_forwarding.py31CODE
LOWlocalstack-core/localstack/utils/aws/arns.py590CODE
LOWlocalstack-core/localstack/utils/aws/queries.py11CODE
LOWlocalstack-core/localstack/testing/pytest/fixtures.py1088CODE
LOW…-core/localstack/testing/pytest/stepfunctions/utils.py398CODE
LOWlocalstack-core/localstack/testing/aws/lambda_utils.py179CODE
LOWlocalstack-core/localstack/http/duplex_socket.py77CODE
LOWlocalstack-core/localstack/dev/run/__main__.py133CODE
LOWlocalstack-core/localstack/dev/kubernetes/__main__.py414CODE
LOWlocalstack-core/localstack/aws/protocol/serializer.py1238CODE
LOWlocalstack-core/localstack/aws/protocol/serializer.py1511CODE
LOWlocalstack-core/localstack/aws/protocol/serializer.py1948CODE
LOWlocalstack-core/localstack/aws/protocol/serializer.py2043CODE
LOWlocalstack-core/localstack/aws/api/kinesis/__init__.py988CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py2701CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py2773CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py2809CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py3193CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py3543CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py3573CODE
LOWlocalstack-core/localstack/aws/api/lambda_/__init__.py3593CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py6047CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py6087CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py6125CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py6160CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7280CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7338CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7381CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7403CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7468CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7546CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7582CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7612CODE
LOWlocalstack-core/localstack/aws/api/ssm/__init__.py7647CODE
178 more matches not shown…
Cross-Language Confusion30 hits · 159 pts
SeverityFileLineSnippetContext
HIGH⚡tests/unit/test_templating.py225 template3 = "${foo.bar.toString().lower().replace(' ','-')}"STRING
HIGH⚡tests/unit/test_templating.py231 contains_template1 = ("${foo.bar.toString().lower().contains('baz')}", "true")STRING
HIGH⚡tests/unit/test_templating.py232 contains_template2 = ("${foo.bar.toString().lower().contains('bar')}", "false")STRING
HIGH⚡tests/unit/logging_/test_format.py176 "input": b'{"sensitive_key": null, "other_key": "value"}',CODE
HIGH⚡tests/unit/logging_/test_format.py185 assert """b'{"sensitive_key": null, "other_key": "value"}'""" in log_messageCODE
HIGHtests/unit/services/apigateway/test_mock_integration.py72 '{"statusCode": 200 , null: null }',CODE
HIGHtests/integration/docker_utils/test_docker.py170 f"mkdir -p /auth && echo '{htpasswd_content_str}' > /auth/htpasswd && exec /entrypoint.sh /etc/docker/registCODE
HIGHtests/integration/docker_utils/test_docker.py2230 "ip link add dummy0 type dummy && ip link delete dummy0 && echo test",STRING
HIGHtests/integration/docker_utils/test_docker.py2242 "ip link add dummy0 type dummy && ip link delete dummy0 && echo test",STRING
HIGHtests/aws/services/lambda_/test_lambda.py1401 assert response.text == '{"Message":null}'STRING
HIGH…sts/aws/services/apigateway/test_apigateway_kinesis.py21 "PartitionKey": #if( $foo.bar.stuff != '')"$elem.partitionKey"#else"$elemJsonB64.length()"#endCODE
HIGH⚡tests/aws/services/apigateway/test_apigateway_common.py841 _create_route("to-string", '#set($result = $input.path("$.json"))$result.toString()')CODE
HIGH⚡tests/aws/services/apigateway/test_apigateway_common.py844 '#set($result = $input.path("$.nonExisting")){"body": $result, "nested": $result.nested, "isNull": #if( $resCODE
HIGH⚡tests/aws/services/apigateway/test_apigateway_common.py848 '#set($result = $input.path("$.json.listValue")){"body": $result, "nested": $result.nested, "isNull": #if( $CODE
HIGHlocalstack-core/localstack/utils/batching.py89 # always return trueCOMMENT
HIGH…/localstack/utils/container_utils/docker_sdk_client.py374 result = self.client().images.push(docker_image, **kwargs)CODE
HIGHlocalstack-core/localstack/testing/pytest/container.py235 f"apt-get install -y --no-install-recommends dnsutils >/dev/null && dig +short @{ip_address} -p {port} {nameCODE
HIGHlocalstack-core/localstack/aws/protocol/parser.py1138 # currently boolean values, CBOR's null, and CBOR's undefined type. All otherCOMMENT
HIGHlocalstack-core/localstack/services/lambda_/provider.py837 + "(arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layerCODE
HIGHlocalstack-core/localstack/services/lambda_/provider.py999 f"[x86_64, arm64], Member must not be null]",CODE
HIGHlocalstack-core/localstack/services/lambda_/provider.py1596 f"[x86_64, arm64], Member must not be null]",CODE
HIGHlocalstack-core/localstack/services/lambda_/provider.py1979 f"1 validation error detected: Value '{{{key}={value}}}' at 'routingConfig.additionalVersionWeights'CODE
HIGH…calstack-core/localstack/services/lambda_/urlrouter.py82 response.data = '{"Message":null}'CODE
HIGH…calstack-core/localstack/services/lambda_/api_utils.py743 "[Member must satisfy enum value set: [x86_64, arm64], Member must not be null]"CODE
HIGH…ices/lambda_/resource_providers/aws_lambda_function.py197 PhysicalResourceId: physicalResourceId || context.logStreamName,CODE
HIGH…ices/lambda_/resource_providers/aws_lambda_function.py201 NoEcho: noEcho || false,CODE
HIGH…ck-core/localstack/services/secretsmanager/provider.py468 # in which case this field is non-null, but an integer.COMMENT
HIGHlocalstack-core/localstack/services/sqs/models.py1153 message_group.push(message)CODE
HIGH…tack/services/stepfunctions/asl/jsonata/validations.py45 cause=f"The JSONata expression '{expression}' returned nothing (undefined).",CODE
HIGH…execution/state_task/service/state_task_service_sns.py70 f"Proxy: null)"CODE
Over-Commented Block164 hits · 150 pts
SeverityFileLineSnippetContext
LOWrequirements-basic.txt1#COMMENT
LOWrequirements-test.txt1#COMMENT
LOWrequirements-test.txt21asn1crypto==1.5.1COMMENT
LOWrequirements-test.txt41 # viaCOMMENT
LOWrequirements-test.txt61 # boto3COMMENT
LOWrequirements-test.txt81 # via cryptographyCOMMENT
LOWrequirements-test.txt101 # viaCOMMENT
LOWrequirements-test.txt121 # pymongoCOMMENT
LOWrequirements-test.txt141 # httpxCOMMENT
LOWrequirements-test.txt161 # localstack-twistedCOMMENT
LOWrequirements-test.txt181jpype1==1.6.0COMMENT
LOWrequirements-test.txt201jsonpath-rw==1.4.0COMMENT
LOWrequirements-test.txt221 # jsonschemaCOMMENT
LOWrequirements-test.txt241moto-ext==5.1.25COMMENT
LOWrequirements-test.txt261opensearch-py==3.1.0COMMENT
LOWrequirements-test.txt281 # localstack-core (pyproject.toml)COMMENT
LOWrequirements-test.txt301 # aws-cdk-libCOMMENT
LOWrequirements-test.txt321 # via localstack-coreCOMMENT
LOWrequirements-test.txt341 # via localstack-core (pyproject.toml)COMMENT
LOWrequirements-test.txt361 # responsesCOMMENT
LOWrequirements-test.txt381 # responsesCOMMENT
LOWrequirements-test.txt401rsa==4.7.2COMMENT
LOWrequirements-test.txt421 # aws-cdk-asset-awscli-v1COMMENT
LOWrequirements-test.txt441 # via pydanticCOMMENT
LOWrequirements-test.txt461wsproto==1.3.2COMMENT
LOWrequirements-runtime.txt1#COMMENT
LOWrequirements-runtime.txt21 # localstack-coreCOMMENT
LOWrequirements-runtime.txt41 # aws-sam-translatorCOMMENT
LOWrequirements-runtime.txt61 # viaCOMMENT
LOWrequirements-runtime.txt81 # viaCOMMENT
LOWrequirements-runtime.txt101 # viaCOMMENT
LOWrequirements-runtime.txt121 # via h2COMMENT
LOWrequirements-runtime.txt141jmespath==1.1.0COMMENT
LOWrequirements-runtime.txt161 # jsonpatchCOMMENT
LOWrequirements-runtime.txt181lazy-object-proxy==1.12.0COMMENT
LOWrequirements-runtime.txt201networkx==3.6.1COMMENT
LOWrequirements-runtime.txt221 # jpype1COMMENT
LOWrequirements-runtime.txt241 # localstack-core (pyproject.toml)COMMENT
LOWrequirements-runtime.txt261 # localstack-core (pyproject.toml)COMMENT
LOWrequirements-runtime.txt281 # localstack-core (pyproject.toml)COMMENT
LOWrequirements-runtime.txt301 # requests-aws4authCOMMENT
LOWrequirements-runtime.txt321 # referencingCOMMENT
LOWrequirements-runtime.txt341 # viaCOMMENT
LOWrequirements-runtime.txt361werkzeug==3.1.6COMMENT
LOWrequirements-typehint.txt1#COMMENT
LOWrequirements-typehint.txt21argparse==1.4.0COMMENT
LOWrequirements-typehint.txt41 # via localstack-coreCOMMENT
LOWrequirements-typehint.txt61botocore==1.42.59COMMENT
LOWrequirements-typehint.txt81 # viaCOMMENT
LOWrequirements-typehint.txt101 # via awscliCOMMENT
LOWrequirements-typehint.txt121cython==3.2.4COMMENT
LOWrequirements-typehint.txt141 # pymongoCOMMENT
LOWrequirements-typehint.txt161 # hypercornCOMMENT
LOWrequirements-typehint.txt181 # via pre-commitCOMMENT
LOWrequirements-typehint.txt201jmespath==1.1.0COMMENT
LOWrequirements-typehint.txt221 # localstack-coreCOMMENT
LOWrequirements-typehint.txt241jsonschema-path==0.3.4COMMENT
LOWrequirements-typehint.txt261markupsafe==3.0.3COMMENT
LOWrequirements-typehint.txt461mypy-boto3-timestream-query==1.42.3COMMENT
LOWrequirements-typehint.txt481openapi-core==0.22.0COMMENT
104 more matches not shown…
TODO Padding68 hits · 102 pts
SeverityFileLineSnippetContext
LOWtests/aws/services/lambda_/test_lambda_common.py110 # TODO: implement logging configCOMMENT
LOWtests/aws/services/lambda_/test_lambda_common.py186 # TODO: implement logging configCOMMENT
LOWtests/aws/services/lambda_/test_lambda_common.py215 # TODO: implement logging configCOMMENT
LOWtests/aws/services/lambda_/test_lambda_api.py3897 # TODO: implement updates while IN_PROGRESS in LocalStack (currently not supported)COMMENT
LOWtests/aws/services/lambda_/test_lambda_api.py4015 # TODO: implement AWS principle matching based on explicit listCOMMENT
LOWtests/aws/services/lambda_/test_lambda.py1668 # TODO: implement for new provider (was tested in old provider)COMMENT
LOWtests/aws/services/lambda_/test_lambda.py1814 # TODO: implement in new provider (was tested in old provider)COMMENT
LOWtests/aws/services/lambda_/test_lambda.py2711 # TODO: implement and enable this validation in LSCOMMENT
LOWtests/aws/services/lambda_/test_lambda_runtimes.py67# TODO: consider using the multiruntime annotation directly?!COMMENT
LOWtests/aws/services/lambda_/test_lambda_runtimes.py449 # TODO: implement logging configCOMMENT
LOW…vent_source_mapping/test_lambda_integration_kinesis.py1405# TODO: add tests for different edge cases in filtering (e.g. message isn't json => needs to be dropped)COMMENT
LOWtests/aws/services/s3/test_s3.py3807 # TODO: implement ContentMD5 in ASFCOMMENT
LOW…loudformation/resource_providers/ssm/test_parameter.py22 # TODO: implement fetching the resource and performing any required validations hereCOMMENT
LOW…loudformation/resource_providers/ssm/test_parameter.py50 # TODO: implement fetching the resource and performing any required validations hereCOMMENT
LOW…sts/aws/services/cloudformation/api/test_changesets.py214# TODO: implementCOMMENT
LOW…aws/services/stepfunctions/v2/test_stepfunctions_v2.py544 # TODO: implement list_tags_for_resourceCOMMENT
LOW…aws/services/stepfunctions/v2/test_stepfunctions_v2.py761 # TODO: implement stepfunction's 'describe_state_machine_for_execution'.COMMENT
LOW⚡tests/aws/services/stepfunctions/v2/base/test_wait.py14# TODO: add tests for seconds, secondspath, timestampCOMMENT
LOW⚡tests/aws/services/stepfunctions/v2/base/test_wait.py15# TODO: add tests that actually validate waiting time (e.g. x minutes) BUT mark them accordingly and skip them by defaulCOMMENT
LOWlocalstack-core/localstack/utils/platform.py57# TODO: implement proper architecture detection (e.g., test whether an architecture-specific binary actually runs)COMMENT
LOWlocalstack-core/localstack/utils/analytics/cli.py23 client_time=str(datetime.datetime.now()), # TODO: consider using utcnow()CODE
LOWlocalstack-core/localstack/aws/protocol/parser.py1598 # TODO: implement multi-protocol support for Kinesis, so that it can uses the `cbor` protocol and removeCOMMENT
LOWlocalstack-core/localstack/aws/protocol/serializer.py2398 # TODO: implement multi-protocol support for Kinesis, so that it can uses the `cbor` protocol and removeCOMMENT
LOWlocalstack-core/localstack/services/lambda_/provider.py2694 # TODO: implement URL invokeCOMMENT
LOW…stack-core/localstack/services/lambda_/lambda_utils.py19 # TODO: consider using localstack/testing/aws/lambda_utils.py:RUNTIMES_AGGREGATED for testing or moving the constantCOMMENT
LOW…alstack/services/lambda_/invocation/version_manager.py321 # TODO: consider using the same prefix logging as in error case for execution environment.COMMENT
LOW…k/services/lambda_/invocation/execution_environment.py163 # TODO: implement mixed permissions (maybe in RIE)COMMENT
LOW…k/services/lambda_/invocation/execution_environment.py381 # TODO: implement Lambda lineage: https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.htmlCOMMENT
LOW…ck/services/lambda_/event_source_mapping/esm_worker.py79 # TODO: implement lifecycle lockingCOMMENT
LOW…/lambda_/event_source_mapping/pollers/stream_poller.py219 # TODO: implement format detection behavior (e.g., for JSON body):COMMENT
LOW…/lambda_/event_source_mapping/pollers/stream_poller.py235 # TODO: implement MaximumBatchingWindowInSeconds flush condition (before or after filter?)COMMENT
LOW…/lambda_/event_source_mapping/pollers/stream_poller.py280 # TODO: add tests for partial batch failure scenariosCOMMENT
LOW…/lambda_/event_source_mapping/pollers/stream_poller.py285 # TODO: implement and test splitting batches in half until batch size 1COMMENT
LOW…lambda_/event_source_mapping/pollers/kinesis_poller.py122 # TODO: implement heuristic based on content type: https://docs.aws.amazon.com/eventbridge/latest/userguCOMMENT
LOW…ces/lambda_/event_source_mapping/pollers/sqs_poller.py149 # TODO: Handle exceptions differently i.e QueueNotExist or ConnectionFailed should retry with backoffCOMMENT
LOW…ces/lambda_/event_source_mapping/pollers/sqs_poller.py167 # TODO: implement invocation payload size quotaCOMMENT
LOW…ces/lambda_/event_source_mapping/pollers/sqs_poller.py200 # TODO: implement format detection behavior (e.g., for JSON body):COMMENT
LOW…ces/lambda_/event_source_mapping/pollers/sqs_poller.py305 # TODO: implement heuristic based on content type: https://docs.aws.amazon.com/eventbridge/latest/userguide/COMMENT
LOWlocalstack-core/localstack/services/s3/notifications.py199 # TODO: implement wildcard filteringCOMMENT
LOWlocalstack-core/localstack/services/s3/validation.py186 # TODO: add validation hereCOMMENT
LOW…k-core/localstack/services/route53resolver/provider.py409 # TODO: implement max_results filtering and next_token handlingCOMMENT
LOW…ck-core/localstack/services/cloudformation/provider.py717 raise NotImplementedError() # TODO: implement importing resourcesCODE
LOW…core/localstack/services/cloudformation/v2/provider.py561 raise NotImplementedError() # TODO: implement importing resourcesCODE
LOW…s/cloudformation/engine/v2/change_set_model_preproc.py888 # TODO: add tests for joining non string values.COMMENT
LOW…/cloudformation/engine/v2/change_set_model_executor.py398 # TODO: Add test to assert that on type change the resources are replaced.COMMENT
LOW…cloudformation/engine/v2/change_set_model_describer.py218 # TODO: Add test to assert that on type change the resources are replaced.COMMENT
LOW…ack-core/localstack/services/stepfunctions/provider.py1517 # TODO: Add validation ensuring only present if 'mock' is specifiedCOMMENT
LOW…stack/services/stepfunctions/asl/parse/preprocessor.py1109 # TODO: add tests for arguments in jsonata blocks using result writerCOMMENT
LOW…tion/state_task/service/state_task_service_callback.py47# TODO: consider implementing a polling pattern similar to that observable from AWS:COMMENT
LOW…rvices/stepfunctions/local_mocking/mock_config_file.py149 # TODO: add tests to ensure the hot-reloading of the mock configurationCOMMENT
LOW⚡…rvices/stepfunctions/local_mocking/mock_config_file.py162 # TODO: add tests to ensure the hot-reloading of the mock configurationCOMMENT
LOW…re/localstack/services/apigateway/next_gen/provider.py268 # TODO: add validation to the canary settingsCOMMENT
LOW…re/localstack/services/apigateway/next_gen/provider.py406 # TODO: add validation with the parameters? seems like it validated client side? how to try?COMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1267 # TODO: add validation for unsupported pathsCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1284 # TODO: add validationCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1338 # TODO: add validation if authorizer does not existCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1352 # TODO: add validationCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1395 # TODO: add validationCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1408 # TODO: add validationCOMMENT
LOW…core/localstack/services/apigateway/legacy/provider.py1479 # TODO: add validationCOMMENT
8 more matches not shown…
Modern Structural Boilerplate62 hits · 66 pts
SeverityFileLineSnippetContext
LOW⚡localstack-core/localstack/config.py1642 def set_provider_if_not_exists(self, service: str, provider: str) -> None:CODE
LOWlocalstack-core/localstack/runtime/__init__.py3__all__ = [CODE
LOWlocalstack-core/localstack/runtime/server/__init__.py3__all__ = [CODE
LOWlocalstack-core/localstack/utils/auth.py6logger = logging.getLogger(__name__)CODE
LOWlocalstack-core/localstack/utils/tagging.py83 def update_tags(self, arn: ResourceARN, tags: TagMap) -> None:CODE
LOW…ck-core/localstack/utils/analytics/metrics/__init__.py6__all__ = ["Counter", "LabeledCounter", "MetricRegistry", "MetricRegistryKey"]CODE
LOWlocalstack-core/localstack/state/__init__.py11__all__ = [CODE
LOWlocalstack-core/localstack/extensions/api/services.py3__all__ = [CODE
LOWlocalstack-core/localstack/extensions/api/__init__.py7__all__ = ["Extension"]CODE
LOWlocalstack-core/localstack/extensions/api/aws.py19__all__ = [CODE
LOWlocalstack-core/localstack/extensions/api/runtime.py3__all__ = ["get_session_id"]CODE
LOWlocalstack-core/localstack/extensions/api/http.py6__all__ = [CODE
LOWlocalstack-core/localstack/http/dispatcher.py9__all__ = [CODE
LOWlocalstack-core/localstack/http/proxy.py3__all__ = [CODE
LOWlocalstack-core/localstack/http/client.py3__all__ = [CODE
LOWlocalstack-core/localstack/http/asgi.py12__all__ = [CODE
LOWlocalstack-core/localstack/http/request.py12__all__ = [CODE
LOWlocalstack-core/localstack/http/resource.py3__all__ = [CODE
LOWlocalstack-core/localstack/http/__init__.py6__all__ = ["route", "resource", "Resource", "Router", "Response", "Request"]CODE
LOWlocalstack-core/localstack/http/router.py39__all__ = [CODE
LOWlocalstack-core/localstack/http/websocket.py9__all__ = [CODE
LOWlocalstack-core/localstack/packages/__init__.py13__all__ = [CODE
LOWlocalstack-core/localstack/packages/core.py340 def _setup_existing_installation(self, target: InstallTarget) -> None:CODE
LOWlocalstack-core/localstack/packages/api.py148 def _setup_existing_installation(self, target: InstallTarget) -> None:CODE
LOWlocalstack-core/localstack/aws/gateway.py6__all__ = [CODE
LOWlocalstack-core/localstack/aws/chain.py34__all__ = [CODE
LOWlocalstack-core/localstack/aws/serving/asgi.py3__all__ = [CODE
LOWlocalstack-core/localstack/aws/serving/wsgi.py3__all__ = [CODE
LOWlocalstack-core/localstack/aws/api/__init__.py10__all__ = [CODE
LOWlocalstack-core/localstack/aws/handlers/fallback.py13__all__ = ["EmptyResponseHandler", "InternalFailureHandler"]CODE
LOWlocalstack-core/localstack/aws/handlers/routes.py3__all__ = [CODE
LOW…lambda_/event_source_mapping/pollers/kinesis_poller.py194 def set_data(self, event: dict, data: bytes) -> None:CODE
LOW⚡localstack-core/localstack/services/kms/models.py626 def _update_key_rotation_date(self) -> None:CODE
LOW⚡localstack-core/localstack/services/kms/provider.py1784def set_key_managed(key_id: str, account_id: str, region_name: str) -> None:CODE
LOWlocalstack-core/localstack/services/kms/provider.py410 def _set_key_tags(self, account_id: str, region: str, resource_arn: str, tags: TagList) -> None:CODE
LOWlocalstack-core/localstack/services/kms/provider.py1366 def update_alias(self, context: RequestContext, request: UpdateAliasRequest) -> None:CODE
LOWlocalstack-core/localstack/services/s3/checksums.py169__all__ = ["combine_crc32", "combine_crc32c", "combine_crc64_nvme"]CODE
LOW…lstack-core/localstack/services/s3/storage/__init__.py9__all__ = [CODE
LOWlocalstack-core/localstack/services/sns/provider.py1537def _set_sms_attribute_default(store: SnsStore) -> None:CODE
LOW⚡localstack-core/localstack/services/sqs/utils.py273def _update_binary_length_and_value(md5: Any, value: bytes) -> None: # type: ignore[misc]CODE
LOW…ack-core/localstack/services/events/api_destination.py100 def set_state(self, state: ApiDestinationState) -> None:CODE
LOW…calstack-core/localstack/services/events/connection.py100 def set_state(self, state: ConnectionState) -> None:CODE
LOWlocalstack-core/localstack/services/events/replay.py59 def set_state(self, state: ReplayState) -> None:CODE
LOWlocalstack-core/localstack/services/events/replay.py89 def _set_event_last_replayed_time(self, events: FormattedEventList) -> None:CODE
LOWlocalstack-core/localstack/services/events/archive.py94 def set_state(self, state: ArchiveState) -> None:CODE
LOWlocalstack-core/localstack/services/events/archive.py97 def set_creation_time(self) -> None:CODE
LOW…/localstack/services/cloudformation/models/__init__.py1__all__ = []CODE
LOW…core/localstack/services/cloudformation/v2/entities.py236 def set_update_model(self, update_model: UpdateModel) -> None:CODE
LOW…s/cloudformation/engine/v2/change_set_model_preproc.py225 def _setup_runtime_cache(self) -> None:CODE
LOW…cloudformation/engine/v2/change_set_model_describer.py46 def _setup_runtime_cache(self) -> None:CODE
LOW…lstack-core/localstack/services/transcribe/provider.py134 def _setup_vosk() -> None:CODE
LOW…ck/services/stepfunctions/asl/component/state/state.py125 def _set_next(self, env: Environment) -> None:CODE
LOW…tions/asl/component/state/state_choice/state_choice.py39 def _set_next(self, env: Environment) -> None:CODE
LOW⚡…alstack/services/stepfunctions/asl/eval/environment.py208 def set_ended(self) -> None:CODE
LOW⚡…alstack/services/stepfunctions/asl/eval/environment.py217 def set_error(self, error: ExecutionFailedEventDetails) -> None:CODE
LOW⚡…alstack/services/stepfunctions/asl/eval/environment.py225 def set_timed_out(self) -> None:CODE
LOW⚡…alstack/services/stepfunctions/asl/eval/environment.py233 def set_stop(self, stop_date: Timestamp, cause: str | None, error: str | None) -> None:CODE
LOW…e/localstack/services/stepfunctions/asl/eval/states.py129 def set_error_output(self, error_output: Any) -> None:CODE
LOW…vices/stepfunctions/asl/eval/test_state/environment.py93 def set_choice_selected(self, next_state_name: str) -> None:CODE
LOW…vices/stepfunctions/asl/eval/test_state/environment.py100 def set_caught_error(self, next_state_name: str, error: str, cause: str) -> None:CODE
2 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/aws/handlers/test_service.py4from moto.core.exceptions import RESTError, ServiceExceptionCODE
CRITICALlocalstack-core/localstack/services/moto.py12from moto.core.exceptions import RESTErrorCODE
CRITICALlocalstack-core/localstack/services/dynamodb/utils.py7from moto.core.exceptions import JsonRESTErrorCODE
CRITICAL…localstack/services/stepfunctions/backend/execution.py77 self.execution.output = self.execution.exec_worker.env.states.get_input()CODE
CRITICAL…services/stepfunctions/backend/test_state/execution.py57 self.execution.output = self.execution.exec_worker.env.states.get_input()CODE
CRITICAL…services/stepfunctions/backend/test_state/execution.py63 self.execution.output = self.execution.exec_worker.env.states.get_input()CODE
AI Slop Vocabulary31 hits · 58 pts
SeverityFileLineSnippetContext
LOWtests/unit/http_/test_client.py45 # just set the same path as requests uses anyway (the issues is caused just by the variables being set).COMMENT
LOWtests/unit/aws/test_service_router.py228 # The endpoint URL is mandatory here, just set a dummy (doesn't _need_ to be localstack specific)COMMENT
MEDIUMtests/integration/services/test_internal.py58 # we're being specifically vague here since we want this test to be robust against pro or communityCOMMENT
MEDIUM…dk_templates/MythicalMisfits/MythicalMisfitsStack.json681 "ZipFile": "# Source adapted from: https://github.com/aws-samples/aws-modern-application-workshop/blob/python-CODE
MEDIUMtests/aws/services/lambda_/test_lambda_api.py4807 # Since we're not comparing the entire string, this should be robust toCOMMENT
MEDIUMtests/aws/services/lambda_/functions/__init__.py3"""Importing this variable is more robust with respect to refactorings compared to relative paths everywhere."""STRING
LOWtests/aws/services/iam/test_iam.py1399 # some roles are already present and not deletable - so we just create them if they exist, and snapshot laterCOMMENT
LOW…ces/iam/resource_providers/aws_iam_user/test_parity.py41 # alternatively you can also just add another resource to the template creating a group and referencing it direcCOMMENT
LOWtests/aws/services/apigateway/test_apigateway_api.py2734 # ElbV2 is not available in community, so we just use a dummy arnSTRING
MEDIUMlocalstack-core/localstack/config.py1088# DEV: 0 (default) Enable for mounting of RIE init binary and delve debuggerCOMMENT
MEDIUMlocalstack-core/localstack/config.py1094# DEV: path to delve debugger (e.g., var/rapid/dlv)COMMENT
LOWlocalstack-core/localstack/config.py419# directory for persisting data (TODO: deprecated, simply use PERSISTENCE=1)COMMENT
LOWlocalstack-core/localstack/utils/net.py482 # TODO if neither host resolves, we might be in linux. We could just use the default gateway thenCOMMENT
MEDIUMlocalstack-core/localstack/utils/analytics/metadata.py174 # try to get a robust ID from the docker socket (which will be the same from the host and theCOMMENT
LOW…calstack-core/localstack/testing/pytest/path_filter.py58 # this is technically redundant since we can just add "tests/" instead as a line item. still prefer to be explicCOMMENT
LOWlocalstack-core/localstack/aws/handlers/service.py247 # just use any operation for mocking purposes (the parser needs it to populate the default response)COMMENT
LOWlocalstack-core/localstack/aws/handlers/response.py18 # Currently, we just add 'x-localstack' in response headers.COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/provider.py3406 # TODO: might be useful other places, utilizeCOMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/runtimes.py1"""This Lambda Runtimes reference defines everything around Lambda runtimes to facilitate adding new runtimes."""STRING
MEDIUM…calstack-core/localstack/services/lambda_/api_utils.py373 # See AWS service principals for comprehensive docs:COMMENT
MEDIUM…ces/lambda_/event_source_mapping/pollers/sqs_poller.py133 # * Our LS-internal optimizations leverage custom boto-headers to set larger batch sizes and longer wait times tCOMMENT
LOW⚡localstack-core/localstack/services/kms/models.py618 # becomes "PendingReplicaDeletion". Here we just set all keys to "PendingDeletion", as we do not have anyCOMMENT
LOWlocalstack-core/localstack/services/s3/provider.py3768 # does not raise error if the bucket did not have a config, will simply returnCOMMENT
LOWlocalstack-core/localstack/services/s3/cors.py159 # if it's a regular request, simply return without adding CORSCOMMENT
LOWlocalstack-core/localstack/services/s3/cors.py286 # if we can't parse the request, just set GetObjectCOMMENT
LOW⚡localstack-core/localstack/services/s3/presigned_url.py226 # if we can't parse the request, just set GetObjectCOMMENT
LOW⚡localstack-core/localstack/services/s3/utils.py1120 # if the Tagging does not respect the schema, just returnCOMMENT
LOWlocalstack-core/localstack/services/sns/filter.py388 # TODO: AWS says they support only from -10^9 to 10^9 but seems to accept it, so we just returnCOMMENT
LOW…lstack/services/dynamodbstreams/dynamodbstreams_api.py150 # simply pass along the records, they already have the right formatCOMMENT
LOW…k-core/localstack/services/events/event_rule_engine.py410 # TODO: AWS says they support only from -10^9 to 10^9 but seems to accept it, so we just returnCOMMENT
LOW…-core/localstack/services/apigateway/legacy/helpers.py356 # TODO: for now we simply return "allow-all" CORS headers, but in the futureCOMMENT
Redundant / Tautological Comments34 hits · 53 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/aws/protocol/test_parser.py393 # Check if the determined operation_model is correctCOMMENT
LOW⚡tests/unit/aws/protocol/test_parser.py396 # Check if the result is equal to the given "expected" dict or the kwargs (if "expected" has not been set)COMMENT
LOWtests/unit/aws/protocol/test_parser.py681 # Check if the determined operation_model is correctCOMMENT
LOWtests/unit/aws/protocol/test_parser.py736 # Check if the determined operation_model is correctCOMMENT
LOWtests/unit/aws/protocol/test_serializer.py110 # Check if the result is equal to the initial response paramsCOMMENT
LOWtests/unit/aws/protocol/test_serializer.py185 # Check if the result is equal to the initial response paramsCOMMENT
LOW…a_/event_source_mapping/test_lambda_integration_sqs.py389 # Set retries to zero to speed up the testCOMMENT
LOWtests/aws/services/cloudwatch/test_cloudwatch.py3096 # Check if x-amzn-RequestId is in the response headers - case-sensitive checkCOMMENT
LOWtests/aws/services/sns/test_sns.py2035 # Set retries to zero to speed up the testCOMMENT
LOWtests/aws/services/ec2/test_ec2.py496 # Check if the custom ID is presentCOMMENT
LOWtests/aws/services/ec2/test_ec2.py510 # Check if the custom ID is present in the describe_vpcs response as wellCOMMENT
LOWtests/aws/services/ec2/test_ec2.py517 # Check if an duplicate custom ID exception is thrown if we try to recreate the VPC with the same custom IDCOMMENT
LOWtests/aws/services/ec2/test_ec2.py585 # Check if subnet ID matches the custom IDCOMMENT
LOWtests/aws/services/ec2/test_ec2.py601 # Check if the custom ID is present in the describe_subnets response as wellCOMMENT
LOWtests/aws/services/ec2/test_ec2.py607 # Check if a duplicate custom ID exception is thrown if we try to recreate the subnet with the same custom IDCOMMENT
LOWtests/aws/services/ec2/test_ec2.py644 # Check if subnet ID matches the custom IDCOMMENT
LOWtests/aws/services/ec2/test_ec2.py660 # Check if the custom ID is present in the describe_subnets response as wellCOMMENT
LOWtests/aws/services/ec2/test_ec2.py722 # Check if security group ID matches the custom IDCOMMENT
LOWtests/aws/services/ec2/test_ec2.py727 # Check if the custom ID is present in the describe_security_groups response as wellCOMMENT
LOWtests/aws/services/ec2/test_ec2.py740 # Check if a duplicate custom ID exception is thrown if we try to recreate the security group with the same custCOMMENT
LOW.github/workflows/asf-updates.yml52 # Check if there are changed files and store the result in target/diff-check.logCOMMENT
LOW.github/workflows/aws-tests-mamr.yml48 # Set TEST_AWS_REGION_NAME to a random AWS region other than us-east-1COMMENT
LOWlocalstack-core/localstack/utils/batching.py115 # Check if the last addition triggered the batch policyCOMMENT
LOWlocalstack-core/localstack/utils/checksum.py121 # Check if it looks like filename: hex_dataCOMMENT
LOWlocalstack-core/localstack/utils/checksum.py225 # Read file in chunks to handle large files efficientlyCOMMENT
LOW⚡localstack-core/localstack/aws/protocol/serializer.py1211 # Check if we need to add a namespaceCOMMENT
LOWlocalstack-core/localstack/aws/protocol/serializer.py696 # Check if we need to add a namespaceCOMMENT
LOW⚡…ck-core/localstack/services/secretsmanager/provider.py147 ): # Check if it appears to be an arn: so to skip secret_id check: delegate parsing of arn to handlers.CODE
LOW…stack/services/sns/resource_providers/aws_sns_topic.py186 # Check if TopicName has changed (requires recreation)COMMENT
LOW…calstack-core/localstack/services/dynamodb/provider.py906 # Check if replicated region is validCOMMENT
LOW…stack-core/localstack/services/dynamodb/v2/provider.py714 # Check if replicated region is validCOMMENT
LOW…lstack-core/localstack/services/transcribe/provider.py342 # Check if file is valid wavCOMMENT
LOWlocalstack-core/localstack/services/ec2/patches.py143 # Check if custom id is unique within a given VPCCOMMENT
LOWlocalstack-core/localstack/services/ec2/patches.py222 # Check if custom id is uniqueCOMMENT
Fake / Example Data50 hits · 48 pts
SeverityFileLineSnippetContext
LOWtests/unit/aws/test_service_router.py161 "string": "dummy-value",CODE
LOWtests/aws/services/kinesis/test_kinesis.py831 fake_name = "wrong-stream-name"CODE
LOWtests/aws/services/kinesis/test_kinesis.py833 account_id=account_id, region_name=region_name, stream_name=fake_nameCODE
LOWtests/aws/services/kms/test_kms.py511 aws_client.kms.describe_key(KeyId="fake-key-id")CODE
LOWtests/aws/services/kms/test_kms.py523 aws_client.kms.describe_key(KeyId="mrk-fake-key-id")CODE
LOWtests/aws/services/kms/test_kms.snapshot.json312 "Message": "Invalid keyId 'fake-key-id'"CODE
LOWtests/aws/services/kms/test_kms.snapshot.json314 "message": "Invalid keyId 'fake-key-id'",CODE
LOWtests/aws/services/kms/test_kms.snapshot.json334 "Message": "Invalid keyId 'mrk-fake-key-id'"CODE
LOWtests/aws/services/kms/test_kms.snapshot.json336 "message": "Invalid keyId 'mrk-fake-key-id'",CODE
LOWtests/aws/services/s3/test_s3_api.snapshot.json2195 "Key": "<bucket:1>/fake-key",CODE
LOWtests/aws/services/s3/test_s3_api.snapshot.json2206 "Key": "fake-key",CODE
LOWtests/aws/services/s3/test_s3_api.snapshot.json2217 "Key": "fake-key",CODE
LOWtests/aws/services/s3/test_s3.snapshot.json2513 "Body": "Lorem ipsum dolor sit amet, ... Lorem ipsum dolor sit amet, ... Lorem ipsum dolor sit amet, ... Lorem iCODE
LOWtests/aws/services/s3/test_s3.snapshot.json2513 "Body": "Lorem ipsum dolor sit amet, ... Lorem ipsum dolor sit amet, ... Lorem ipsum dolor sit amet, ... Lorem iCODE
LOWtests/aws/services/s3/test_s3.snapshot.json2529 "Body": "Lorem ipsum dolor",CODE
LOWtests/aws/services/s3/test_s3.snapshot.json2900 "put-bucket-grant-acl-fake-key": {CODE
LOWtests/aws/services/s3/test_s3.snapshot.json4576 "Message": "Invalid keyId 'fake-key-id'"CODE
LOWtests/aws/services/s3/test_s3.snapshot.json4626 "Message": "Invalid keyId 'fake-key-id'"CODE
LOWtests/aws/services/s3/test_s3.snapshot.json4636 "Message": "Invalid keyId 'fake-key-id'"CODE
LOWtests/aws/services/s3/test_s3.snapshot.json10865 "put-object-grant-acl-fake-key": {CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1740 fake_key = "fake-key"CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1742 aws_client.s3.get_object_tagging(Bucket=fake_bucket, Key=fake_key)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1746 aws_client.s3.delete_object_tagging(Bucket=fake_bucket, Key=fake_key)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1751 Bucket=fake_bucket, Tagging={"TagSet": []}, Key=fake_keyCODE
LOW⚡tests/aws/services/s3/test_s3_api.py1756 aws_client.s3.get_object_tagging(Bucket=s3_bucket, Key=fake_key)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1760 aws_client.s3.delete_object_tagging(Bucket=s3_bucket, Key=fake_key)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1764 aws_client.s3.put_object_tagging(Bucket=s3_bucket, Tagging={"TagSet": []}, Key=fake_key)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1769 aws_client.s3.put_object(Bucket=s3_bucket, Key=fake_key, Body="", Tagging=tagging)CODE
LOW⚡tests/aws/services/s3/test_s3_api.py1774 aws_client.s3.put_object(Bucket=s3_bucket, Key=fake_key, Body="", Tagging=tagging)CODE
LOW⚡tests/aws/services/s3/test_s3.py966 fake_key = "fake-key"CODE
LOW⚡tests/aws/services/s3/test_s3.py971 Key=fake_key,CODE
LOW⚡tests/aws/services/s3/test_s3.py980 Bucket=s3_bucket, Key=fake_key, UploadId=fake_upload_idCODE
LOW⚡tests/aws/services/s3/test_s3.py986 Bucket=s3_bucket, Key=fake_key, UploadId=fake_upload_idCODE
LOW⚡tests/aws/services/s3/test_s3.py4563 body = "Lorem ipsum dolor sit amet, ... " * 30CODE
LOW⚡tests/aws/services/s3/test_s3.py4563 body = "Lorem ipsum dolor sit amet, ... " * 30CODE
LOWtests/aws/services/s3/test_s3.py2441 snapshot.match("put-bucket-grant-acl-fake-key", e.value.response)CODE
LOWtests/aws/services/s3/test_s3.py2630 snapshot.match("put-object-grant-acl-fake-key", e.value.response)CODE
LOWtests/aws/services/s3/test_s3.py4583 body = "Lorem ipsum dolor sit amet, ... " * 30CODE
LOWtests/aws/services/s3/test_s3.py4583 body = "Lorem ipsum dolor sit amet, ... " * 30CODE
LOWtests/aws/services/s3/test_s3.py9699 Key="fake-key",CODE
LOWtests/aws/services/s3/test_s3.py10269 Key="fake-key",CODE
LOW⚡tests/aws/services/s3/test_s3.py4903 SSEKMSKeyId="fake-key-id",STRING
LOW⚡tests/aws/services/s3/test_s3.py4911 SSEKMSKeyId="fake-key-id",STRING
LOW⚡tests/aws/services/s3/test_s3.py4920 SSEKMSKeyId="fake-key-id",STRING
LOWtests/aws/services/s3/test_s3.py4935 SSEKMSKeyId="fake-key-id",STRING
LOWtests/aws/services/s3/test_s3.py4990 SSEKMSKeyId="fake-key-id",STRING
LOWtests/aws/services/s3/test_s3.py5003 SSEKMSKeyId="fake-key-id",STRING
LOW…s/aws/services/cloudformation/resources/test_lambda.py946 "name": {"S": "John Doe"},CODE
LOW⚡tests/aws/services/apigateway/test_apigateway_api.py3503 restApiId="wrong-api", resourceId="dummy-value", httpMethod="GET", statusCode="200"STRING
LOW⚡tests/aws/services/apigateway/test_apigateway_api.py3509 restApiId="wrong-api", resourceId="dummy-value", httpMethod="GET", statusCode="200"STRING
Modern AI Meta-Vocabulary12 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/services/kms/test_kms.py111 # through dependency injection (e.g., by abstracting the KMS store), so thatCOMMENT
MEDIUMtests/unit/services/kms/test_kms.py141 # through dependency injection (e.g., by abstracting the KMS store), so thatCOMMENT
MEDIUMtests/unit/services/kms/test_kms.py168 # the store through dependency injection to isolate test concerns.COMMENT
MEDIUM…dk_templates/MythicalMisfits/MythicalMisfitsStack.json146 "ZipFile": "# Source adapted from: https://github.com/aws-samples/aws-modern-application-workshop/blob/python-CODE
MEDIUM…thical_mysfits/artefacts/functions/stream_processor.py27# Directly fetch the data from the DynamoDB table as we don't have the Mysfits microservice yetCOMMENT
MEDIUM…scenario/mythical_mysfits/stacks/mysfits_core_stack.py14 # TODO: full Mysfits microservice with Fargate + NLBCOMMENT
MEDIUM.github/bot_templates/ASF_UPGRADE_PR.md3It uses the latest code-generator from the _main_ branch ([scaffold.py](https://github.com/localstack/localstack/blob/maCODE
MEDIUMlocalstack-core/localstack/aws/handlers/service.py287 # FIXME: we should set the exception attributes in the scaffold when we generate the exceptions.COMMENT
MEDIUMlocalstack-core/localstack/services/lambda_/runtimes.py11# 1. Update botocore and generate the Lambda API stubs using `python3 -m localstack.aws.scaffold upgrade`COMMENT
MEDIUM…lstack/services/cloudformation/scaffolding/__main__.py35# increase when any major changes are done to the scaffolding,COMMENT
MEDIUM…lstack/services/cloudformation/scaffolding/__main__.py740 # for Python files, use ruff to clean up formatting errors introduced by scaffoldingCOMMENT
MEDIUM…re/localstack/services/cloudformation/engine/schema.py6# TODO: unify with scaffoldingCOMMENT
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHtests/aws/services/s3/test_s3.py7965 # assert that the regular Boto3 client does not work, and does not sign the parameter as requestedCOMMENT
HIGHtests/aws/services/s3/test_s3.py8008 # assert that the regular Boto3 client does not work, and does not sign the parameter as requestedCOMMENT
HIGHlocalstack-core/localstack/testing/pytest/fixtures.py1768# by adding some CNAME records as requested by ASW in response to a certificate request.COMMENT
Slop Phrases10 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtests/aws/services/s3/test_s3.py12568 # assert that you can use different encryption keys for different versionsCOMMENT
LOWtests/aws/services/s3/test_s3.py2806 # make sure to have a non created bucket, got some AccessDenied against AWSCOMMENT
MEDIUMtests/aws/services/sns/test_sns.py4893 # if the secondary region is already modified, you can use SECONDARY_TEST_AWS_PROFILE and similarCOMMENT
LOWtests/aws/services/sns/test_sns.py3865 # make sure to reset all received emails in SESCOMMENT
LOWtests/aws/services/opensearch/test_opensearch.py609 # make sure to close the connectio *after* we've called ``response.read()``.COMMENT
LOW…ithub/workflows/pr-welcome-first-time-contributors.yml20 const prMessage = `Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contrCODE
LOW⚡…ack-core/localstack/utils/kinesis/kinesis_connector.py243 # make sure to convert stream ARN to stream nameCOMMENT
MEDIUM⚡…lstack/services/s3/resource_providers/aws_s3_bucket.py597 # you can use Amazon CloudFront [...]"COMMENT
LOW…k-core/localstack/services/cloudformation/api_utils.py150 # note: make sure to normalize the bucket name here!COMMENT
LOW…core/localstack/services/cloudformation/v2/provider.py228 # TODO: make sure to bring `_validate_config` from the base class when removing itCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHlocalstack-core/localstack/utils/event_matcher.py14 Match events based on configured rule engine. Note: Different services handle patterns/events differently: STRING
HIGH…stack/services/lambda_/invocation/executor_endpoint.py225 Dispatches a Lambda invocation request to the specified container endpoint, with automatic retries in cSTRING
HIGH…rvices/stepfunctions/local_mocking/mock_config_file.py95 Load and cache the Step Functions mock configuration from a JSON file. This function is memoized using `functoSTRING
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…epfunctions/v2/test_state/test_test_state_scenarios.py342 # Step 1 - Testing the Approval Required stateCOMMENT
LOW…epfunctions/v2/test_state/test_test_state_scenarios.py375 # Step 2 - Testing the Approval Ask stateCOMMENT
LOW…epfunctions/v2/test_state/test_test_state_scenarios.py393 # Step 3 - Testing the Check Approval stateCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlocalstack-core/localstack/services/sqs/query_api.py149def handle_request(request: Request, region: str) -> Response:CODE