AI Slop Code RIsk Monitor

aws/aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

21.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for aws/aws-sam-cli, a Python project with 6,737 GitHub stars. SynthScan examined 405,418 lines of code across 3542 source files, recording 7781 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 21.7 (Elevated 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.

21.7
Adjusted Signal
21.7
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
6.7K
Stars
Python
Language
405.4K
Lines of Code
3.5K
Files
7.8K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 55.3/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 8.6/100 · LOW

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

Agent Over-Engineering Ratio 59.8/100 · HIGH

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

PR Review Velocity Impact 69.0/100 · HIGH

Which changes need focused human review? 7781 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 15HIGH 229MEDIUM 216LOW 7321

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 7781 distinct pattern matches across 21 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 Identifiers6380 hits · 5834 pts
SeverityFileLineSnippetContext
LOWdesigns/intrinsics_design.md299def intrinsic_property_resolver():CODE
LOWdesigns/cloud_formation_api_gateway_support.md228 def _extrac_api_gateway_rest_api():CODE
LOWdesigns/cloud_formation_api_gateway_support.md236 def _extract_gateway_rest_api():CODE
LOWdesigns/cloud_formation_api_gateway_support.md248 def _extract_gateway_resource():CODE
LOWtests/testing_utils.py349def strip_nightly_installer_suffix(request: dict, metric_type: str):CODE
LOWtests/get_testing_resources.py32def get_managed_test_resource_outputs(session: Session):CODE
LOWtests/setup_testing_resources.py130def check_conversion_exemptions():CODE
LOWtests/unit/test_yamlhelper.py77 def test_parse_json_with_tabs(self):STRING
LOWtests/unit/test_yamlhelper.py82 def test_parse_json_preserve_elements_order(self):STRING
LOWtests/unit/test_yamlhelper.py112 def test_parse_yaml_preserve_elements_order(self):STRING
LOWtests/unit/test_yamlhelper.py166 def test_unquoted_template_format_version_to_json(self):STRING
LOW⚡tests/unit/cli/test_command.py70 def test_set_commands_must_extract_command_name(self):CODE
LOW⚡tests/unit/cli/test_command.py76 def test_list_commands_must_return_commands_name(self):CODE
LOW⚡tests/unit/cli/test_command.py84 def test_get_command_must_return_command_module(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py107 def test_get_command_must_skip_unknown_commands(self):CODE
LOWtests/unit/cli/test_command.py117 def test_get_command_must_skip_on_exception_loading_module(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py130 def test_get_command_must_skip_on_absence_of_cli_method(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py143 def test_get_command_root_command(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py157 def test_get_options_root_command_text(self, mock_get_params, mock_format_commands):CODE
LOWtests/unit/cli/test_command.py180 def test_get_command_root_command_text(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py47 def test_toml_valid_with_section(self, mock_handle_parse_options):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py55 def test_toml_valid_with_no_version(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py62 def test_toml_valid_with_invalid_version(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py69 def test_toml_invalid_empty_dict(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py77 def test_toml_invalid_file_name(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py154 def test_callback_with_valid_config_file_path(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py184 def test_callback_with_config_file_from_pipe(self):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py607 def test_succeeds_updating_option(self, mock_click):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py617 def test_doesnt_update_not_needed_options(self, mock_click):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py627 def test_doesnt_update_multiple_false(self, mock_click):CODE
LOW⚡tests/unit/cli/test_cli_config_file.py637 def test_doesnt_update_not_found(self, mock_click):CODE
LOWtests/unit/cli/test_cli_config_file.py112 def test_callback_with_valid_config_env(self):CODE
LOWtests/unit/cli/test_cli_config_file.py134 def test_callback_with_invalid_config_file(self):CODE
LOWtests/unit/cli/test_cli_config_file.py217 def test_configuration_option(self):CODE
LOWtests/unit/cli/test_cli_config_file.py230 def test_get_ctx_defaults_non_nested(self):CODE
LOWtests/unit/cli/test_cli_config_file.py241 def test_get_ctx_defaults_nested(self):CODE
LOWtests/unit/cli/test_cli_config_file.py282 def test_dont_save_command_line_args_if_flag_not_set(self):CODE
LOWtests/unit/cli/test_cli_config_file.py294 def test_save_command_line_args(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py334 def test_dont_save_structured_output_option(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py377 def test_dont_save_arguments_not_from_command_line(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py416 def test_dont_save_command_line_args_if_value_is_none(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py454 def test_save_region_when_context_has_region(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py488 def test_save_default_region_when_context_has_no_region(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py525 def test_save_default_region_when_no_sam_context(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py560 def test_save_region_with_custom_config_env(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py648 def test_handles_invalid_param_name(self, mock_click, mock_log):CODE
LOWtests/unit/cli/test_cli_config_file.py661 def test_handles_invalid_param_multiple(self, mock_click, mock_log, mock_get_options_map):CODE
LOWtests/unit/cli/test_lazy_group.py18 def test_lazy_group_lists_commands(self):CODE
LOWtests/unit/cli/test_lazy_group.py37 def test_lazy_group_loads_command_on_demand(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py65 def test_lazy_group_handles_missing_command(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py85 def test_lazy_group_handles_import_error(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py105 def test_lazy_group_validates_command_object(self, mock_import):CODE
LOW⚡tests/unit/cli/test_row_modifiers.py16 def test_base_line_row_modifier(self):CODE
LOW⚡tests/unit/cli/test_row_modifiers.py23 def test_highlight_new_row_name_modifier(self):CODE
LOW⚡tests/unit/cli/test_row_modifiers.py30 def test_showcase_row_modifier(self):CODE
LOW⚡tests/unit/cli/test_global_config.py126 def test_get_value_env_var_only(self):CODE
LOW⚡tests/unit/cli/test_global_config.py133 def test_get_value_env_var_and_config_priority(self):CODE
LOW⚡tests/unit/cli/test_global_config.py140 def test_get_value_config_only(self):CODE
LOW⚡tests/unit/cli/test_global_config.py148 def test_get_value_error_default(self):CODE
LOW⚡tests/unit/cli/test_global_config.py156 def test_get_value_incorrect_type_default(self):CODE
6320 more matches not shown…
Decorative Section Separators153 hits · 524 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/lib/samlib/test_wrapper.py316# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py318# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py407# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py409# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py582# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py584# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py701# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py703# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1073# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1075# =============================================================================COMMENT
MEDIUM⚡…it/lib/cfn_language_extensions/test_sam_integration.py102# =============================================================================COMMENT
MEDIUM⚡…it/lib/cfn_language_extensions/test_sam_integration.py104# =============================================================================COMMENT
MEDIUM⚡…it/lib/cfn_language_extensions/test_sam_integration.py778# =============================================================================COMMENT
MEDIUM⚡…it/lib/cfn_language_extensions/test_sam_integration.py780# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py22# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py24# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py180# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py182# =============================================================================COMMENT
MEDIUM⚡tests/unit/lib/cfn_language_extensions/test_fn_if.py637# =============================================================================COMMENT
MEDIUM⚡tests/unit/lib/cfn_language_extensions/test_fn_if.py639# =============================================================================COMMENT
MEDIUM⚡…t/lib/cfn_language_extensions/test_phase_separation.py35# =============================================================================COMMENT
MEDIUM⚡…t/lib/cfn_language_extensions/test_phase_separation.py37# =============================================================================COMMENT
MEDIUM⚡…t/lib/cfn_language_extensions/test_phase_separation.py646# =============================================================================COMMENT
MEDIUM⚡…t/lib/cfn_language_extensions/test_phase_separation.py648# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py143# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py145# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py337# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py339# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py472# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py474# =============================================================================COMMENT
MEDIUM⚡…/lib/cfn_language_extensions/test_foreach_processor.py1609# =============================================================================COMMENT
MEDIUM⚡…/lib/cfn_language_extensions/test_foreach_processor.py1611# =============================================================================COMMENT
MEDIUM⚡…/lib/cfn_language_extensions/test_foreach_processor.py1614# =============================================================================COMMENT
MEDIUM⚡…/lib/cfn_language_extensions/test_foreach_processor.py1616# =============================================================================COMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py446# =============================================================================COMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py448# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_deletion_policy.py536# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_deletion_policy.py538# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py28# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py30# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py216# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py218# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py373# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py375# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py589# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py591# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py762# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py764# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py913# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py915# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py979# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py981# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py1035# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py1037# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py159# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py161# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py232# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py234# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py325# =============================================================================COMMENT
MEDIUM⚡…nit/lib/cfn_language_extensions/test_fn_find_in_map.py327# =============================================================================COMMENT
93 more matches not shown…
Cross-File Repetition98 hits · 490 pts
SeverityFileLineSnippetContext
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_if.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0test that can_resolve returns false for other functions.STRING
HIGH…lib/cfn_language_extensions/test_condition_resolver.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_split.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that can_resolve returns false for other functions.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that can_resolve returns false for other functions.STRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_select.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_ref.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_sub.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_if.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0test that can_resolve returns false for non-dict values.STRING
HIGH…lib/cfn_language_extensions/test_condition_resolver.py0test that can_resolve returns false for non-dict values.STRING
HIGH…nit/lib/cfn_language_extensions/test_resolvers_base.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_split.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that can_resolve returns false for non-dict values.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that can_resolve returns false for non-dict values.STRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_select.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_ref.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_sub.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…it/lib/cfn_language_extensions/test_deletion_policy.py0test processing template with empty resources section.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_api.py0test processing template with empty resources section.STRING
HIGH…/cfn_language_extensions/test_update_replace_policy.py0test processing template with empty resources section.STRING
HIGHtests/integration/testdata/list/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…ython/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…2c9dce715854f8b35aa73fb7eb5245ba9721580bbe5837/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…df01072092f9851ddcd1b41ba294f736ce77091f5cc456/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…2c9dce715854f8b35aa73fb7eb5245ba9721580bbe5837/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…df01072092f9851ddcd1b41ba294f736ce77091f5cc456/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…tion/testdata/sync/infra/before/Python/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…ation/testdata/sync/infra/after/Python/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…/integration/testdata/sync/code/before/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…s/integration/testdata/sync/code/after/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…before/child_stack/child_function/function/function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…data/sync/nested/before/root_function/root_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…d/before/child_stack/child_functions/child_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…tdata/sync/nested/after/root_function/root_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…ed/after/child_stack/child_functions/child_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…n/testdata/sync/infra/after/Python/lmi_function/app.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…ration/testdata/sync/code/after/lmi_function/app_v2.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…tegration/testdata/sync/code/after/lmi_function/app.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…ration/testdata/sync/code/after/lmi_function/app_v1.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…egration/buildcmd/test_build_terraform_applications.py0please read comments in package_integ_base.py for more details around this.STRING
HIGHtests/integration/publish/publish_app_integ_base.py0please read comments in package_integ_base.py for more details around this.STRING
HIGHtests/regression/package/regression_package_base.py0please read comments in package_integ_base.py for more details around this.STRING
38 more matches not shown…
Unused Imports455 hits · 408 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py3CODE
LOWtests/setup_testing_resources.py12CODE
LOWtests/unit/cli/test_cli_config_file.py11CODE
LOWtests/unit/cli/test_global_config.py3CODE
LOWtests/unit/cli/test_main.py2CODE
LOWtests/unit/local/apigw/test_local_apigw_service.py27CODE
LOW…nit/local/docker/test_lambda_image_concurrent_build.py7CODE
LOW…nit/local/docker/test_lambda_image_concurrent_build.py15CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py10CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py10CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py12CODE
LOWtests/unit/local/docker/test_container.py5CODE
LOW…sts/unit/local/docker/test_container_client_factory.py10CODE
LOW…sts/unit/local/docker/test_container_client_factory.py13CODE
LOWtests/unit/local/docker/test_container_client.py9CODE
LOW…sts/unit/local/docker/test_durable_lambda_container.py6CODE
LOWtests/unit/local/docker/test_manager.py5CODE
LOWtests/unit/local/docker/test_manager.py8CODE
LOWtests/unit/local/docker/test_platform_config.py17CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py5CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py6CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py8CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py11CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py17CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py19CODE
LOWtests/unit/local/layers/test_download_layers.py1CODE
LOWtests/unit/local/layers/test_download_layers.py9CODE
LOWtests/unit/local/lambdafn/test_env_vars.py7CODE
LOWtests/unit/local/lambdafn/test_runtime.py6CODE
LOW…local/lambda_service/test_local_lambda_http_service.py2CODE
LOW…local/lambda_service/test_local_lambda_http_service.py3CODE
LOW…local/lambda_service/test_local_lambda_http_service.py14CODE
LOWtests/unit/schema/test_schema_validation.py4CODE
LOWtests/unit/lib/samlib/test_wrapper.py2CODE
LOW…ib/init/test_application_insights_template_modifier.py3CODE
LOW…ib/init/test_application_insights_template_modifier.py6CODE
LOW…ib/init/test_application_insights_template_modifier.py7CODE
LOWtests/unit/lib/clients/test_lambda_client.py5CODE
LOWtests/unit/lib/clients/test_lambda_client.py6CODE
LOWtests/unit/lib/clients/test_lambda_client.py8CODE
LOWtests/unit/lib/clients/test_lambda_client.py10CODE
LOWtests/unit/lib/pipeline/bootstrap/test_environment.py8CODE
LOW…/unit/lib/bootstrap/companion_stack/test_data_types.py4CODE
LOW…ib/bootstrap/nested_stack/test_nested_stack_builder.py4CODE
LOWtests/unit/lib/deploy/test_deployer.py15CODE
LOWtests/unit/lib/cookiecutter/test_interactive_flow.py1CODE
LOWtests/unit/lib/utils/test_tar.py4CODE
LOW…sts/unit/lib/utils/test_resource_type_based_factory.py4CODE
LOW…sts/unit/lib/utils/test_resource_type_based_factory.py4CODE
LOWtests/unit/lib/utils/test_git_repo.py2CODE
LOWtests/unit/lib/utils/test_handler_observer.py3CODE
LOWtests/unit/lib/utils/test_code_trigger_factory.py1CODE
LOWtests/unit/lib/utils/test_code_trigger_factory.py3CODE
LOWtests/unit/lib/utils/test_durable_formatters.py7CODE
LOWtests/unit/lib/utils/test_definition_validator.py1CODE
LOWtests/unit/lib/utils/test_definition_validator.py3CODE
LOWtests/unit/lib/utils/test_async_utils.py2CODE
LOWtests/unit/lib/utils/test_version_checker.py3CODE
LOWtests/unit/lib/utils/test_version_checker.py5CODE
LOW…ts/unit/lib/utils/test_managed_cloudformation_stack.py2CODE
395 more matches not shown…
Empty Error Handlers62 hits · 310 pts
SeverityFileLineSnippetContext
HIGHtests/testing_utils.py87except Exception:CODE
HIGHtests/testing_utils.py220except psutil.NoSuchProcess:CODE
HIGHtests/testing_utils.py73except Exception:CODE
HIGHtests/testing_utils.py78except Exception:CODE
HIGHtests/testing_utils.py83except Exception:CODE
HIGHtests/testing_utils.py215except psutil.NoSuchProcess:CODE
HIGHtests/unit/local/docker/test_lambda_image_build_lock.py36except (OSError, IOError):CODE
HIGHtests/unit/lib/utils/test_git_repo.py132except:CODE
HIGHtests/unit/lib/utils/test_git_repo.py147except:CODE
HIGHtests/unit/lib/utils/test_git_repo.py172except Exception:CODE
HIGHtests/unit/lib/utils/test_git_repo.py189except Exception:CODE
HIGHtests/unit/lib/utils/test_git_repo.py203except Exception:CODE
HIGH…t/lib/cfn_language_extensions/test_phase_separation.py568except Exception:CODE
HIGH…t/lib/cfn_language_extensions/test_phase_separation.py631except Exception:CODE
HIGH…t/commands/validate/lib/test_sam_template_validator.py334except Exception:CODE
HIGH…t/commands/validate/lib/test_sam_template_validator.py352except Exception:CODE
HIGH…unit/commands/local/cli_common/test_durable_context.py59except Exception:CODE
HIGHtests/end_to_end/test_stages.py68except Exception:CODE
HIGHtests/integration/pipeline/base.py108except botocore.exceptions.ClientError:CODE
HIGHtests/integration/deploy/test_deploy_command.py769except ClientError:CODE
HIGHtests/integration/deploy/deploy_integ_base.py75except s3.meta.client.exceptions.NoSuchBucket:CODE
HIGHtests/integration/deploy/deploy_integ_base.py87except iam.meta.client.exceptions.NoSuchEntityException:CODE
HIGHtests/integration/deploy/deploy_integ_base.py95except lambda_client.exceptions.ResourceNotFoundException:CODE
HIGH…egration/buildcmd/test_build_terraform_applications.py218except FileNotFoundError:CODE
HIGH…/integration/local/invoke/test_invoke_cdk_templates.py153except (APIError, AttributeError):CODE
HIGH…/integration/local/invoke/test_invoke_cdk_templates.py159except FileNotFoundError:CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py65except (FileNotFoundError, PermissionError):CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py270except FileNotFoundError:CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py283except (FileNotFoundError, PermissionError):CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py315except (FileNotFoundError, PermissionError):CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py364except APIError:CODE
HIGH…ion/local/invoke/test_invoke_terraform_applications.py372except (FileNotFoundError, PermissionError):CODE
HIGHtests/integration/local/invoke/test_integrations_cli.py812except Exception:CODE
HIGH…ntegration/local/invoke/test_integration_cli_images.py51except (APIError, ImageNotFound):CODE
HIGH…ntegration/local/invoke/test_integration_cli_images.py55except (APIError, ImageNotFound):CODE
HIGH…ntegration/local/invoke/test_integration_cli_images.py459except (APIError, ImageNotFound):CODE
HIGH…ntegration/local/invoke/test_integration_cli_images.py478except APIError:CODE
HIGH…ntegration/local/invoke/test_invoke_build_in_source.py27except:CODE
HIGH…art_lambda/test_start_lambda_terraform_applications.py270except (FileNotFoundError, PermissionError):CODE
HIGH…art_lambda/test_start_lambda_terraform_applications.py354except (FileNotFoundError, PermissionError):CODE
HIGH…art_lambda/test_start_lambda_terraform_applications.py471except APIError:CODE
HIGHtests/integration/local/start_api/test_start_api.py2277except Exception:CODE
HIGH…start_api/test_start_api_with_terraform_application.py52except (FileNotFoundError, PermissionError):CODE
HIGH…start_api/test_start_api_with_terraform_application.py82except CalledProcessError:CODE
HIGH…start_api/test_start_api_with_terraform_application.py90except (FileNotFoundError, PermissionError):CODE
HIGHtests/integration/sync/test_sync_watch.py854except TimeoutError:CODE
HIGHtests/integration/package/package_integ_base.py158except ecr_client.exceptions.RepositoryNotFoundException:CODE
HIGHsamcli/local/apigw/local_apigw_service.py163except (KeyError, StopIteration):CODE
HIGH…i/local/docker/durable_functions_emulator_container.py420except Exception:CODE
HIGH…i/local/docker/durable_functions_emulator_container.py408except requests.exceptions.RequestException:CODE
HIGHsamcli/local/services/base_local_service.py175except ValueError:CODE
HIGHsamcli/lib/pipeline/bootstrap/stage.py448except Exception:CODE
HIGHsamcli/lib/providers/sam_function_provider.py874except RuntimeError:CODE
HIGHsamcli/lib/utils/osutils.py120except OSError:CODE
HIGHsamcli/lib/utils/colors.py21except Exception:CODE
HIGHsamcli/lib/telemetry/project_metadata.py37except subprocess.CalledProcessError:CODE
HIGHsamcli/lib/telemetry/project_metadata.py66except subprocess.CalledProcessError:CODE
HIGHsamcli/lib/package/stream_cursor_utils.py16except Exception:CODE
HIGHsamcli/hook_packages/terraform/hooks/prepare/enrich.py697except CalledProcessError:CODE
HIGHsamcli/hook_packages/terraform/hooks/prepare/enrich.py699except OSError:CODE
2 more matches not shown…
Docstring Block Structure40 hits · 200 pts
SeverityFileLineSnippetContext
HIGH…i/local/docker/durable_functions_emulator_container.py108 Get port from environment variables. External emulator port takes first priority, followed by any overrSTRING
HIGHsamcli/local/docker/container_client.py143 Load image from archive with runtime-specific handling. This method handles the differences between coSTRING
HIGHsamcli/local/docker/container_client.py195 Get archive from container with runtime-specific handling. Different container runtimes handle file exSTRING
HIGHsamcli/local/docker/container_client.py353 Load image from archive using standard Docker image loading logic. Uses Docker's standard high-level ASTRING
HIGHsamcli/local/docker/container_client.py558 Load image from archive with Finch overlayfs workaround using raw API fallback. Finch has known issuesSTRING
HIGHsamcli/local/docker/container_client.py589 Handle Finch overlayfs workaround using raw API. This method uses the raw Docker API to work around FiSTRING
HIGHsamcli/local/docker/container_client_factory.py64 Create and test client based on administrator enforcement. Creates preferred client instance and testsSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py684 Process a CloudFormation template with language extensions. This is the main entry point for processing CloudFSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py729 Load a CloudFormation template from a JSON file. This function reads a JSON file and parses it into a dictionaSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py752 Load a CloudFormation template from a YAML file. This function reads a YAML file and parses it into a dictionaSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py778 Load a CloudFormation template from a file, auto-detecting the format. This function automatically detects theSTRING
HIGHsamcli/lib/cfn_language_extensions/pipeline.py77 Run all processors and return the processed fragment. Executes each processor in order, passing the coSTRING
HIGHsamcli/lib/cfn_language_extensions/sam_integration.py612 Process a template for SAM CLI commands. This function is designed to be called from SAM CLI's template prSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_join.py43 Resolve the Fn::Join intrinsic function. This method extracts the delimiter and list from the Fn::JoinSTRING
HIGH…mcli/lib/cfn_language_extensions/resolvers/fn_split.py42 Resolve the Fn::Split intrinsic function. This method extracts the delimiter and source string from thSTRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_select.py44 Resolve the Fn::Select intrinsic function. This method extracts the index and list from the Fn::SelectSTRING
HIGH…cfn_language_extensions/resolvers/fn_to_json_string.py41 Resolve the Fn::ToJsonString intrinsic function. This method extracts the arguments from the Fn::ToJsoSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py53 Resolve the Fn::Sub intrinsic function. This method handles both short form and long form Fn::Sub: STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py83 Parse Fn::Sub arguments into template string and variable map. Args: args: The Fn::Sub argSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py119 Resolve intrinsic functions in variable map values. Args: variable_map: The variable map fSTRING
HIGH…ib/cfn_language_extensions/resolvers/fn_find_in_map.py53 Resolve the Fn::FindInMap intrinsic function. This method extracts the arguments from the Fn::FindInMaSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py33 Resolve the Ref intrinsic function. This method extracts the reference target from the Ref function anSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py66 Resolve the condition intrinsic function. This method dispatches to the appropriate handler based on tSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py100 Resolve Fn::Equals intrinsic function. Fn::Equals compares two values and returns true if they are equSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py165 Resolve Fn::And intrinsic function. Fn::And returns true if all conditions are true. It accepts 2-10 cSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py196 Resolve Fn::Or intrinsic function. Fn::Or returns true if any condition is true. It accepts 2-10 condiSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py227 Resolve Fn::Not intrinsic function. Fn::Not returns the inverse of a condition. Args: STRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py290 Resolve a Condition reference. The Condition intrinsic function references a named condition from STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_if.py46 Resolve the Fn::If intrinsic function. This method extracts the condition name and two value branches STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_if.py110 Evaluate a condition by name. This method looks up the condition in the resolved_conditions cache STRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_base64.py38 Resolve the Fn::Base64 intrinsic function. This method extracts the arguments from the Fn::Base64 funcSTRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_length.py36 Resolve the Fn::Length intrinsic function. This method extracts the arguments from the Fn::Length funcSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/base.py127 Resolve the intrinsic function and return the result. This method must be implemented by subclasses toSTRING
HIGH…/cfn_language_extensions/processors/resource_policy.py67 Resolve and validate a policy value. Args: logical_id: The logical ID of the resource. STRING
HIGH…/cfn_language_extensions/processors/resource_policy.py95 Resolve an intrinsic function in a policy value. Args: logical_id: The logical ID of the rSTRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py197 Process a template section (or nested dict) for Fn::ForEach constructs. This method iterates through tSTRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py306 Validate a Fn::ForEach construct. The ForEach value must be a list with exactly 3 elements: 1.STRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py547 Resolve a collection that may contain intrinsic functions. If the collection is an intrinsic function STRING
HIGHsamcli/commands/pipeline/init/interactive_init_flow.py381 parse and return the manifest yaml file located in the root directory of the SAM pipeline templates folder: PaSTRING
HIGHsamcli/commands/pipeline/init/interactive_init_flow.py502 A pipeline template defines its own interactive flow (questionnaire) in a JSON file named questions.json located STRING
Excessive Try-Catch Wrapping158 hits · 164 pts
SeverityFileLineSnippetContext
LOW⚡tests/testing_utils.py73 except Exception:CODE
LOW⚡tests/testing_utils.py78 except Exception:CODE
LOW⚡tests/testing_utils.py83 except Exception:CODE
LOW⚡tests/testing_utils.py87 except Exception:CODE
LOWtests/testing_utils.py276 except Exception as ex:CODE
MEDIUMtests/testing_utils.py267def _read_output():CODE
LOWtests/reset_testing_resources.py77 except Exception as e:CODE
LOWtests/setup_testing_resources.py168 except Exception:CODE
LOWtests/setup_testing_resources.py172 except Exception as e:CODE
MEDIUMtests/unit/local/docker/test_container.py1657def make_request(event_data):CODE
LOWtests/unit/local/docker/test_container.py1663 except Exception as e:CODE
LOW⚡…ib/shared_test_events/test_lambda_shared_test_event.py500 except Exception as e:CODE
LOW⚡…ib/shared_test_events/test_lambda_shared_test_event.py511 except Exception as e:CODE
LOW⚡tests/unit/lib/utils/test_git_repo.py172 except Exception:CODE
LOW⚡tests/unit/lib/utils/test_git_repo.py189 except Exception:CODE
LOW⚡tests/unit/lib/utils/test_git_repo.py203 except Exception:CODE
LOW⚡…t/lib/cfn_language_extensions/test_phase_separation.py631 except Exception:CODE
LOW…t/lib/cfn_language_extensions/test_phase_separation.py568 except Exception:CODE
LOWtests/unit/lib/build_module/test_utils.py275 except Exception as e:CODE
LOWtests/unit/commands/test_exceptions.py15 except Exception as e:CODE
LOW…t/commands/validate/lib/test_sam_template_validator.py334 except Exception:CODE
LOW…t/commands/validate/lib/test_sam_template_validator.py352 except Exception:CODE
LOW…unit/commands/local/cli_common/test_durable_context.py59 except Exception:CODE
LOWtests/end_to_end/test_stages.py68 except Exception:CODE
LOWtests/integration/local/invoke/test_integrations_cli.py812 except Exception:CODE
LOWtests/integration/local/invoke/test_invoke_dns.py73 except Exception as e:CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py203 except Exception:CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py226 except Exception as ex:CODE
LOW⚡…ts/integration/local/start_lambda/test_start_lambda.py424 except Exception:CODE
LOW⚡…ts/integration/local/start_lambda/test_start_lambda.py429 except Exception:CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py123 except Exception as e:CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py164 except Exception:CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py187 except Exception as ex:CODE
LOWtests/integration/local/start_api/test_start_api_dns.py87 except Exception as e:CODE
LOW⚡tests/integration/local/start_api/test_start_api.py2241 except Exception:CODE
LOW⚡tests/integration/local/start_api/test_start_api.py2246 except Exception:CODE
LOWtests/integration/local/start_api/test_start_api.py2269 except Exception:CODE
LOWtests/integration/local/start_api/test_start_api.py2277 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py104 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py122 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py137 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py168 except Exception:CODE
LOW…tion/remote/test_event/remote_test_event_integ_base.py39 except Exception as e:CODE
LOW…tion/remote/test_event/remote_test_event_integ_base.py69 except Exception as e: # Ignore if it doesn't exist (it was correctly deleted during tests)CODE
LOWsamcli/cli/cli_config_file.py122 except Exception as ex:CODE
LOWsamcli/local/apigw/local_apigw_service.py712 except Exception as ex:CODE
LOW…i/local/docker/durable_functions_emulator_container.py177 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py224 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py319 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py321 except Exception:CODE
LOW…i/local/docker/durable_functions_emulator_container.py343 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py355 except Exception:CODE
LOW…i/local/docker/durable_functions_emulator_container.py363 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py387 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py410 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py420 except Exception:CODE
LOWsamcli/local/docker/lambda_image.py301 except Exception:CODE
LOWsamcli/local/docker/container_client.py301 except Exception as e:CODE
LOWsamcli/local/docker/container_client.py310 except Exception as e:CODE
LOWsamcli/local/docker/container_client.py528 except Exception as e:CODE
98 more matches not shown…
Hallucination Indicators15 hits · 160 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/lib/delete/test_cfn_utils.py136 self.cf_utils._client.get_waiter.return_value.wait.assert_called_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py45 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py71 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py124 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py162 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py379 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py122 self.layer_sync_flow._get_lock_chain.return_value.__enter__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py123 self.layer_sync_flow._get_lock_chain.return_value.__exit__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py141 self.layer_sync_flow._get_lock_chain.return_value.__enter__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py142 self.layer_sync_flow._get_lock_chain.return_value.__exit__.assert_called_once()CODE
CRITICAL⚡tests/unit/lib/sync/flows/test_layer_sync_flow.py424 self.function_layer_sync._get_lock_chain.return_value.__enter__.assert_called_once()CODE
CRITICAL⚡tests/unit/lib/sync/flows/test_layer_sync_flow.py429 self.function_layer_sync._get_lock_chain.return_value.__exit__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py453 self.function_layer_sync._get_lock_chain.return_value.__enter__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py456 self.function_layer_sync._get_lock_chain.return_value.__exit__.assert_not_called()CODE
CRITICAL…/commands/pipeline/init/test_initeractive_init_flow.py356 templates_path = Path(__file__).parent.parent.parent.parent.parent.joinpath(CODE
Self-Referential Comments49 hits · 158 pts
SeverityFileLineSnippetContext
MEDIUMtests/install-rust.sh66# Create a zig wrapper so SAM CLI's cargo-lambda can find itCOMMENT
MEDIUM⚡tests/unit/cli/test_cli_config_file.py160 # Create a temporary directory.COMMENT
MEDIUM⚡tests/unit/cli/test_cli_config_file.py162 # Create a new config file path that is one layer above the temporary directory.COMMENT
MEDIUM⚡tests/unit/cli/test_cli_config_file.py190 # Create a temporary directory.COMMENT
MEDIUM⚡tests/unit/cli/test_cli_config_file.py192 # Create a new config file path that is one layer above the temporary directory.COMMENT
MEDIUM⚡tests/unit/cli/test_cli_config_file.py195 # Create a new pipeCOMMENT
MEDIUM…nit/local/docker/test_lambda_image_concurrent_build.py271 # Create a layer that is defined within templateCOMMENT
MEDIUM⚡tests/unit/local/docker/test_lambda_image_build_lock.py55 # Create a fresh lock fileCOMMENT
MEDIUM⚡tests/unit/local/docker/test_lambda_image_build_lock.py69 # Create a stale lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py164 # Create a stale lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py183 # Create a persistent lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_container_client.py776 # Create a mock client that doesn't inherit from docker.DockerClientCOMMENT
MEDIUMtests/unit/local/docker/test_platform_config.py467 # Create a concrete implementation that calls the abstract methods directlyCOMMENT
MEDIUMtests/unit/local/common/test_file_lock.py99 # Create a lock file manually with old timestampCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py465 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py513 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py565 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1132 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py614 # Create a minimal PackageContextCOMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_resolvers_base.py332 # Create a subclass that doesn't override resolveCOMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py332 # Create a mock that returns an integerCOMMENT
MEDIUM⚡tests/unit/lib/cfn_language_extensions/test_api.py513 # Create an invalid JSON fileCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py481 # Create a test JSON fileCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py555 # Create a test YAML fileCOMMENT
MEDIUM⚡tests/unit/lib/cfn_language_extensions/test_api.py587 # Create an invalid YAML fileSTRING
MEDIUMtests/unit/lib/build_module/test_app_builder.py1571 # Create a mock WindowsPath object with the necessary attributesCOMMENT
MEDIUMtests/unit/lib/build_module/test_app_builder.py1678 # Create a new builder instance to trigger the exception during initializationCOMMENT
MEDIUMtests/unit/lib/sync/flows/test_function_sync_flow.py26 # Create a mock Lambda client that will be used across all testsCOMMENT
MEDIUMtests/unit/lib/sync/flows/test_function_sync_flow.py94 # Create a mock for the publish paramsCOMMENT
MEDIUM⚡…t/commands/_utils/test_template_language_extensions.py40 # Create a source directoryCOMMENT
MEDIUM⚡tests/unit/commands/_utils/test_template.py604 # Create a fake image archive at the resolved relative path from CWDCOMMENT
MEDIUM⚡tests/unit/commands/_utils/test_template.py612 # Create the archive at the CWD-relative resolved pathCOMMENT
MEDIUM…/testdata/remote_invoke/template-kinesis-priority.yaml6 # Define an AWS Kinesis Data StreamCOMMENT
MEDIUM…estdata/remote_invoke/template-multiple-resources.yaml107 # Define an AWS Kinesis Data StreamCOMMENT
MEDIUM…ldcmd/test_build_terraform_applications_other_cases.py306 # The following functions are defined using serverless tf module, and since Serverless TF has some issueCOMMENT
MEDIUM…tion/local/start_lambda/start_lambda_api_integ_base.py62 # Create the Docker client with automatic container selectionCOMMENT
MEDIUMsamcli/local/layers/layer_downloader.py127 # Create the layer directory with proper race condition handlingCOMMENT
MEDIUMsamcli/local/lambdafn/zip.py106 # Create a symbolic link pointing to source named link_name.COMMENT
MEDIUMsamcli/local/common/file_lock.py63 # Create a safe filename from the resource nameCOMMENT
MEDIUMsamcli/lib/clients/lambda_client.py53 # Create a fresh botocore sessionCOMMENT
MEDIUMsamcli/lib/clients/lambda_client.py56 # Create the boto3 client using the fresh sessionCOMMENT
MEDIUMsamcli/lib/pipeline/bootstrap/stage.py213 # Create an IPV4 socket and use TLS for the SSL connectionCOMMENT
MEDIUMsamcli/lib/providers/provider.py576 # The following code is based on the following spec:COMMENT
MEDIUMsamcli/lib/cookiecutter/question.py1"""This module represents the questions to ask to the user to fulfill the cookiecutter context."""STRING
MEDIUMsamcli/lib/utils/path_observer.py56 """This class is used to alter the behavior of watchdog folder watches.STRING
MEDIUMsamcli/lib/cfn_language_extensions/api.py663 # Create the intrinsic resolverCOMMENT
MEDIUMsamcli/lib/cfn_language_extensions/api.py715 # Create the processing contextCOMMENT
MEDIUMsamcli/lib/remote_invoke/lambda_invoke_executors.py162 # Create a helpful message for the userCOMMENT
MEDIUMsamcli/lib/remote_invoke/sqs_invoke_executors.py133 # Create an object with MD5OfMessageBody and MessageId fields, and write to stdoutCOMMENT
Cross-Language Confusion29 hits · 155 pts
SeverityFileLineSnippetContext
HIGH⚡tests/unit/local/apigw/test_event_constructor.py48 '"c6af9ac6-7b61-11e6-9a41-93e8deadbeef", "path": "endpoint", "extendedRequestId": null, 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py49 '"resourceId": "123456", "apiId": "1234567890", "stage": null, "resourcePath": "endpoint", 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py50 '"identity": {"accountId": null, "apiKey": null, "userArn": null, 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py51 '"cognitoAuthenticationProvider": null, "cognitoIdentityPoolId": null, "userAgent": 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py52 '"Custom User Agent String", "caller": null, "cognitoAuthenticationType": null, "sourceIp": 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py53 '"190.0.0.0", "user": null}, "accountId": "123456789012", "domainName": "190.0.0.1", 'CODE
HIGH⚡tests/unit/local/apigw/test_event_constructor.py58 '"stageVariables": null, "path": "path", "pathParameters": {"path": "params"}, 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py245 "stageVariables": null,CODE
HIGH⚡tests/unit/local/apigw/test_local_apigw_service.py1976 lambda_output = '{"statusCode": 0, "headers": null, "body": null, ' '"isBase64Encoded": null}'CODE
HIGHtests/unit/local/apigw/test_local_apigw_service.py93 self.ctx.push()CODE
HIGHtests/unit/local/apigw/test_local_apigw_service.py1740 lambda_output = '{"statusCode": 0, "headers": null, "body": null, ' '"isBase64Encoded": null}'CODE
HIGHtests/unit/local/docker/test_lambda_image.py499 expected_docker_file = "FROM python\nADD aws-lambda-rie-x86_64 /var/rapid/\nRUN mv /var/rapid/aws-lambda-rie-x86CODE
HIGHtests/unit/local/docker/test_lambda_image.py511 expected_docker_file = "FROM python\nADD aws-lambda-rie-arm64 /var/rapid/\nRUN mv /var/rapid/aws-lambda-rie-arm6CODE
HIGHtests/unit/lib/pipeline/bootstrap/test_environment.py126 # although all of the resources got fulfilled, `did_user_provide_all_required_resources` should return falseCOMMENT
HIGHtests/unit/lib/cfn_language_extensions/test_parsing.py209 """When multiple resources are null, report the first one found."""STRING
HIGHtests/unit/lib/cfn_language_extensions/test_parsing.py228 """When multiple outputs are null, report the first one found."""STRING
HIGH⚡tests/unit/lib/package/test_artifact_exporter.py2205 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2245 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2291 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2324 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGH…t/hook_packages/terraform/hooks/prepare/test_enrich.py1088 "[null]",CODE
HIGHtests/unit/commands/buildcmd/core/test_command.py50 ("$ sam build && sam local invoke\x1b[0m", ""),CODE
HIGHtests/unit/commands/buildcmd/core/test_command.py52 "Build sam project and deploy": [("$ sam build && sam deploy\x1b[0m", "")],CODE
HIGH…/integration/local/invoke/test_invoke_cdk_templates.py203 'pip install -r requirements.txt -t /asset-output && cp -au . /asset-output'STRING
HIGHsamcli/local/docker/lambda_image.py530 + f"RUN mv {rie_path}{rie_name} {rie_path}aws-lambda-rie && chmod +x {rie_path}aws-lambda-rie\n"CODE
HIGHsamcli/lib/providers/cfn_api_provider.py655 parse the route key, and return the methods && path.STRING
HIGH…mcli/lib/cfn_language_extensions/processors/parsing.py56 The validation step will check if Resources is null/missing.STRING
HIGHsamcli/lib/iac/plugins_interfaces.py2Provide IAC Plugins Interface && Project representationSTRING
HIGHsamcli/lib/package/ecr_uploader.py118 push_logs = self.docker_client.api.push(CODE
Deep Nesting137 hits · 125 pts
SeverityFileLineSnippetContext
LOWtests/unit/local/docker/test_lambda_image_additional.py130CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py163CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py195CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py226CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py255CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py285CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py310CODE
LOWtests/unit/local/lambdafn/test_zip.py55CODE
LOWtests/unit/local/lambdafn/test_zip.py153CODE
LOWtests/unit/lib/utils/test_template_hooks.py156CODE
LOWtests/unit/lib/utils/test_subprocess_env.py141CODE
LOWtests/unit/lib/utils/test_subprocess_env.py161CODE
LOW…_extensions/compatibility/test_kotlin_compatibility.py78CODE
LOWtests/unit/lib/package/test_artifact_exporter.py2202CODE
LOWtests/unit/lib/package/test_artifact_exporter.py2321CODE
LOWtests/integration/durable_integ_base.py75CODE
LOWtests/integration/durable_integ_base.py186CODE
LOWtests/integration/deploy/deploy_integ_base.py98CODE
LOWtests/integration/local/invoke/test_integrations_cli.py797CODE
LOWtests/integration/local/invoke/test_invoke_dns.py26CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py207CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py408CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py432CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py78CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py168CODE
LOWtests/integration/local/start_api/test_start_api_dns.py44CODE
LOWtests/integration/local/start_api/test_start_api.py2225CODE
LOWtests/integration/local/start_api/test_start_api.py2249CODE
LOWtests/integration/logs/test_logs_command.py203CODE
LOWtests/integration/sync/sync_integ_base.py73CODE
LOWtests/integration/sync/sync_integ_base.py143CODE
LOWsamcli/cli/types.py127CODE
LOWsamcli/cli/cli_config_file.py129CODE
LOWsamcli/cli/main.py66CODE
LOWsamcli/cli/main.py81CODE
LOWsamcli/local/docker/lambda_image.py174CODE
LOWsamcli/local/docker/lambda_image.py383CODE
LOWsamcli/local/docker/lambda_image.py544CODE
LOWsamcli/local/docker/container_client.py588CODE
LOWsamcli/local/docker/container_client.py664CODE
LOWsamcli/local/docker/container_client.py704CODE
LOWsamcli/local/docker/container_client.py763CODE
LOWsamcli/local/docker/durable_lambda_container.py175CODE
LOWsamcli/local/docker/manager.py46CODE
LOWsamcli/local/lambdafn/env_vars.py220CODE
LOWsamcli/local/lambdafn/zip.py112CODE
LOWsamcli/local/lambdafn/remote_files.py18CODE
LOWsamcli/local/common/file_lock.py185CODE
LOWsamcli/local/common/file_lock.py119CODE
LOWsamcli/lib/init/__init__.py33CODE
LOWsamcli/lib/pipeline/bootstrap/stage.py164CODE
LOWsamcli/lib/generated_sample_events/events.py155CODE
LOWsamcli/lib/deploy/deployer.py451CODE
LOWsamcli/lib/providers/provider.py866CODE
LOWsamcli/lib/providers/api_collector.py79CODE
LOWsamcli/lib/providers/sam_layer_provider.py77CODE
LOWsamcli/lib/providers/sam_function_provider.py206CODE
LOWsamcli/lib/providers/sam_function_provider.py828CODE
LOWsamcli/lib/cookiecutter/question.py146CODE
LOWsamcli/lib/cookiecutter/interactive_flow_creator.py74CODE
77 more matches not shown…
Redundant / Tautological Comments73 hits · 116 pts
SeverityFileLineSnippetContext
LOWtests/testing_utils.py42# Check if required environment variables are availableCOMMENT
LOWtests/unit/local/lambdafn/test_runtime.py982 # Verify if Lambda Event data is setCOMMENT
LOW…b/remote_invoke/test_remote_invoke_executor_factory.py116 # Check if durable function qualifier mapper is addedCOMMENT
LOW⚡tests/unit/lib/package/test_artifact_exporter.py2194 # Set parent_dir to be a non-existent folderCOMMENT
LOW⚡tests/unit/lib/package/test_artifact_exporter.py2197 # Set parent_dir to be a real folder, but just a relative pathCOMMENT
LOWtests/unit/commands/deploy/test_guided_context.py380 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/deploy/test_guided_context.py462 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/deploy/test_guided_context.py545 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/local/start_lambda/test_cli.py111 # Set no_watch to TrueCOMMENT
LOWtests/unit/commands/local/start_api/test_cli.py130 # Set no_watch to TrueCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1539 # Check if the stack is deleted from CloudFormationCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1597 # Check if the stack rolled back successfullyCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1650 # Check if the stack is deleted from CloudFormationCOMMENT
LOW⚡tests/integration/buildcmd/build_integ_base.py48 # Check if any parameter contains "container" in its string representationCOMMENT
LOW⚡tests/integration/buildcmd/build_integ_base.py54 # Check if this might be a use_container parameter by positionCOMMENT
LOWtests/integration/local/invoke/invoke_integ_base.py118 # Close file handles to prevent resource warningsCOMMENT
LOWtests/integration/package/test_package_command_image.py313 # Check if it's the known Finch "overlayfs:" issueCOMMENT
LOWsamcli/cli/global_config.py101 # Set dir to the one specified in _DIR_INJECTION_ENV_VAR environmental variableCOMMENT
LOWsamcli/cli/lazy_group.py26 # Set context_settings to use our custom formatterCOMMENT
LOWsamcli/local/docker/lambda_image.py248 # Check if the base image is up-to-date locally and modify build/pull parameters accordinglyCOMMENT
LOW⚡samcli/local/docker/container_client.py684 # Check if container image matches our expected imageCOMMENT
LOW⚡samcli/local/docker/container_client.py687 # Check if any of the image tags contain our image nameCOMMENT
LOWsamcli/local/docker/container_client.py755 # Check if this is a Finch-specific error that we can work aroundCOMMENT
LOWsamcli/local/docker/container.py442 # Check if tmp dir exists when mount_with_write is enabledCOMMENT
LOWsamcli/local/docker/container.py469 # Check if we're in debug modeCOMMENT
LOWsamcli/local/docker/lambda_container.py127 # Set AWS_LAMBDA_FUNCTION_HANDLER to be based of the command for Image based Packagetypes.COMMENT
LOWsamcli/local/lambdafn/runtime.py144 # Check if this is a durable function and create appropriate container typeCOMMENT
LOWsamcli/local/lambdafn/runtime.py615 # Check if we need to reload the containerCOMMENT
LOWsamcli/local/lambdafn/runtime.py817 # Check if function configuration has changedCOMMENT
LOWsamcli/local/lambdafn/runtime.py821 # Check if debug context has changedCOMMENT
LOWsamcli/local/common/file_lock.py79 # Check if lock file exists and is still validCOMMENT
LOWsamcli/local/common/file_lock.py92 # Set status to in progressCOMMENT
LOWsamcli/local/common/file_lock.py131 # Check if lock file is gone (operation completed)COMMENT
LOWsamcli/local/common/file_lock.py141 # Check if lock is staleCOMMENT
LOWsamcli/lib/samlib/resource_metadata_normalizer.py284 # Check if the Resource is nested StackCOMMENT
LOWsamcli/lib/utils/durable_callback_handler.py84 # Check if execution already completed before promptingCOMMENT
LOWsamcli/lib/utils/system_info.py63 # Check if we're using Finch by looking at the runtime typeCOMMENT
LOWsamcli/lib/utils/managed_cloudformation_stack.py211 # Check if stack information contains the Tags and Outputs as we expectedCOMMENT
LOWsamcli/lib/utils/name_utils.py90 # Check if it's a Lambda ARN with function resource typeCOMMENT
LOWsamcli/lib/utils/name_utils.py118 # Check if it matches the partial ARN pattern: account-id:function:function-name[:version]COMMENT
LOWsamcli/lib/utils/durable_formatters.py264 # Check if any event has an errorCOMMENT
LOW…mcli/lib/cli_validation/image_repository_validation.py53 # Check if `--image-repository`, `--image-repositories`, or `--resolve-image-repos` are required byCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py197 # Check if condition is falseCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py325 # Check if any of the first 3 args are AWS::NoValueCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py382 # Check if condition existsCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py507 # Check if this is an intrinsic function - if so, preserve AWS::NoValue in argsCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py527 # Check if value is {"Ref": "AWS::NoValue"} or NoneCOMMENT
LOWsamcli/lib/cfn_language_extensions/sam_integration.py407 # Check if collection is a parameter referenceCOMMENT
LOW…mcli/lib/cfn_language_extensions/resolvers/fn_split.py88 # Check if it's an intrinsic function (single key starting with Fn:: or Ref)COMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py204 # Check if it's a resource attribute reference (contains a dot)COMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py207 # Check if it's in the variable map firstCOMMENT
LOW⚡…ib/cfn_language_extensions/resolvers/fn_find_in_map.py137 # Check if map existsCOMMENT
LOW⚡…ib/cfn_language_extensions/resolvers/fn_find_in_map.py145 # Check if top-level key existsCOMMENT
LOW⚡…ib/cfn_language_extensions/resolvers/fn_find_in_map.py153 # Check if second-level key existsCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py75 # Check if it's a pseudo-parameter without a provided valueCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py134 # Check if this parameter is a List typeCOMMENT
LOW…fn_language_extensions/resolvers/condition_resolver.py155 # Check if it's an intrinsic function (single key starting with Fn:: or Ref or Condition)COMMENT
LOW…fn_language_extensions/resolvers/condition_resolver.py317 # Check if condition is already resolved in contextCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_if.py131 # Check if condition is already resolved in contextCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/base.py406 # Check if this function is in the preserve listCOMMENT
13 more matches not shown…
AI Structural Patterns39 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/unit/lib/build_module/test_build_graph.py43CODE
LOWtests/unit/commands/buildcmd/test_build_context.py45CODE
LOWtests/integration/pipeline/base.py111CODE
LOWtests/integration/delete/delete_integ_base.py13CODE
LOWtests/integration/deploy/deploy_integ_base.py111CODE
LOWtests/integration/buildcmd/build_integ_base.py91CODE
LOWtests/integration/local/invoke/invoke_integ_base.py33CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py100CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py26CODE
LOWtests/integration/logs/logs_integ_base.py17CODE
LOWtests/integration/sync/sync_integ_base.py218CODE
LOWtests/integration/package/package_integ_base.py88CODE
LOW…/integration/remote/invoke/remote_invoke_integ_base.py100CODE
LOWtests/regression/deploy/regression_deploy_base.py26CODE
LOWtests/regression/package/regression_package_base.py51CODE
LOWsamcli/local/apigw/route.py18CODE
LOWsamcli/local/docker/lambda_build_container.py41CODE
LOWsamcli/local/docker/container.py81CODE
LOWsamcli/local/docker/lambda_container.py40CODE
LOWsamcli/local/lambdafn/runtime.py235CODE
LOWsamcli/local/lambdafn/env_vars.py44CODE
LOWsamcli/local/events/api_event.py12CODE
LOWsamcli/local/events/api_event.py73CODE
LOWsamcli/local/events/api_event.py161CODE
LOWsamcli/local/events/api_event.py302CODE
LOWsamcli/local/events/api_event.py374CODE
LOWsamcli/lib/init/__init__.py33CODE
LOWsamcli/lib/pipeline/bootstrap/stage.py118CODE
LOWsamcli/lib/providers/sam_stack_provider.py212CODE
LOWsamcli/lib/iac/plugins_interfaces.py122CODE
LOWsamcli/lib/iac/plugins_interfaces.py187CODE
LOWsamcli/lib/iac/plugins_interfaces.py543CODE
LOWsamcli/lib/list/data_to_json_mapper.py14CODE
LOWsamcli/lib/hook/hook_wrapper.py44CODE
LOWsamcli/lib/package/artifact_exporter.py471CODE
LOWsamcli/commands/pipeline/bootstrap/guided_context.py48CODE
LOWsamcli/commands/deploy/guided_context.py44CODE
LOWsamcli/commands/local/lib/local_lambda.py55CODE
LOWsamcli/commands/local/cli_common/invoke_context.py78CODE
Modern Structural Boilerplate37 hits · 38 pts
SeverityFileLineSnippetContext
LOWsamcli/cli/command.py16logger = logging.getLogger(__name__)CODE
LOWsamcli/cli/global_config.py263 def set_value(self, config_entry: ConfigEntry, value: Any, is_flag: bool = False, flush: bool = True) -> None:CODE
LOWsamcli/cli/global_config.py283 def _set_value(self, config_entry: ConfigEntry, value: Any, is_flag: bool, flush: bool) -> None:CODE
LOW⚡samcli/cli/global_config.py435 def set_accelerate_opt_in_stack(self, template_file: str, stack_name: str) -> None:CODE
LOWsamcli/local/docker/container_client_factory.py208 def _set_context_preference(value: str) -> None:CODE
LOW…b/bootstrap/companion_stack/companion_stack_manager.py94 def update_companion_stack(self) -> None:CODE
LOWsamcli/lib/providers/api_collector.py66 def set_default_authorizer(self, logical_id: str, authorizer_name: str) -> None:CODE
LOWsamcli/lib/providers/sam_function_provider.py1001 def _set_templates_changed(self, paths: List[str]) -> None:CODE
LOWsamcli/lib/cookiecutter/question.py143 def set_default_next_question_key(self, next_question_key: str) -> None:CODE
LOWsamcli/lib/utils/version_checker.py99def update_last_check_time() -> None:CODE
LOWsamcli/lib/cfn_language_extensions/__init__.py78__all__ = [CODE
LOW…mcli/lib/cfn_language_extensions/resolvers/__init__.py27__all__ = [CODE
LOW…cli/lib/cfn_language_extensions/processors/__init__.py14__all__ = [CODE
LOWsamcli/lib/telemetry/event.py253 def _set_context_property(event_prop: str, context_prop: str) -> None:CODE
LOWsamcli/lib/sync/sync_flow.py110 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/sync_flow.py146 def _update_local_hash(self) -> None:CODE
LOWsamcli/lib/sync/watch_manager.py117 def _update_stacks(self) -> None:CODE
LOWsamcli/lib/sync/flows/http_api_sync_flow.py58 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py83 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py226 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py378 def set_up(self) -> None:CODE
LOW…mcli/lib/sync/flows/auto_dependency_layer_sync_flow.py72 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/rest_api_sync_flow.py63 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/rest_api_sync_flow.py78 def _update_api(self) -> None:CODE
LOWsamcli/lib/sync/flows/alias_version_sync_flow.py78 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/zip_function_sync_flow.py89 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/stepfunctions_sync_flow.py78 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/function_sync_flow.py117 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/function_sync_flow.py174 def update_function_with_lock(self, update_params: FunctionUpdateParams) -> None:CODE
LOWsamcli/lib/package/language_extensions_packaging.py133def _set_prop_value(props: Dict[str, Any], prop_name: str, value: Any) -> None:CODE
LOWsamcli/hook_packages/terraform/hooks/prepare/hook.py142def _update_resources_paths(cfn_resources: Dict[str, Any], terraform_application_dir: str) -> None:CODE
LOWsamcli/commands/_utils/experimental.py83def set_experimental(config_entry: ExperimentalEntry = ExperimentalFlag.All, enabled: bool = True) -> None:CODE
LOWsamcli/commands/pipeline/bootstrap/oidc_config.py81 def update_values(self, bitbucket_repo_uuid: Optional[str]) -> None:CODE
LOWsamcli/commands/sync/sync_context.py48 def update_resource_sync_state(self, resource_id: str, hash_value: str) -> None:CODE
LOWsamcli/commands/sync/sync_context.py62 def update_infra_sync_time(self) -> None:CODE
LOWsamcli/commands/sync/sync_context.py241 def update_infra_sync_time(self) -> None:CODE
LOWsamcli/commands/sync/sync_context.py267 def update_resource_sync_state(self, resource_id: str, hash_value: str) -> None:CODE
Over-Commented Block30 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/setup_wsl2_docker.sh1#!/bin/bashCOMMENT
LOWtests/setup-wsl.sh1#!/bin/bashCOMMENT
LOWtests/unit/test_yamlhelper.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…ges/terraform/hooks/prepare/test_makefile_generator.py141 # The args file is named by hashing logical_id to a fixed-length string, rather thanCOMMENT
LOWtests/unit/commands/init/test_cli.py921 schemas_api_caller_mock.return_value.download_source_code_binding.return_value = "result.zip"COMMENT
LOWtests/unit/commands/init/test_cli.py1141 # WHEN the user follows interactive init promptsCOMMENT
LOWtests/unit/commands/init/test_cli.py1541 }COMMENT
LOW…/unit/commands/local/lib/test_sam_function_provider.py41 },COMMENT
LOW…/unit/commands/local/lib/test_sam_function_provider.py401 # function_id="SamFunctions",COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py161 "schema",COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py261 "java",COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py301 expected_output_folder = Path(temp, "eb-app-python39")COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py341 self.assertTrue(expected_output_folder.is_dir())COMMENT
LOW…egration/testdata/start_api/cdk/template-rest-api.yaml1# Generated from:COMMENT
LOWrequirements/reproducible-win.txt1241 --hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \COMMENT
LOWrequirements/reproducible-mac.txt1221 # mypy-boto3-apigatewayCOMMENT
LOWrequirements/reproducible-linux.txt1221 # mypy-boto3-apigatewayCOMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWsamcli/yamlhelper.py1# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWsamcli/lib/samlib/resource_metadata_normalizer.py101 {SAM_RESOURCE_ID_KEY: ResourceMetadataNormalizer.get_resource_id(resource, logical_id)},COMMENT
LOW…-ruby/{{cookiecutter.project_name}}/hello_world/app.rb1# require 'httparty'COMMENT
LOWsamcli/lib/deploy/deployer.py1"""COMMENT
LOWsamcli/lib/providers/provider.py121 # Path to the code. This could be a S3 URI or local path or a dictionary of S3 Bucket, Key, VersionCOMMENT
LOWsamcli/lib/package/artifact_exporter.py1"""COMMENT
LOWsamcli/lib/package/s3_uploader.py1"""COMMENT
LOW…k_packages/terraform/copy_terraform_built_artifacts.py21# "root_module": {COMMENT
LOW…k_packages/terraform/hooks/prepare/resource_linking.py201 """COMMENT
LOWsamcli/commands/deploy/deploy_context.py1"""COMMENT
LOWsamcli/commands/local/lib/swagger/integration_uri.py21 # Extract the precise Lambda Function ARNCOMMENT
LOWsamcli/commands/package/package_context.py1"""COMMENT
AI Slop Vocabulary10 hits · 19 pts
SeverityFileLineSnippetContext
LOWtests/unit/local/lambdafn/test_env_vars.py171 # With no additional environment variables, resolve() should just return all AWS variablesCOMMENT
LOW⚡tests/unit/lib/telemetry/test_metric.py226 # simply return the arguments to be able to examine & assertCOMMENT
LOWtests/unit/lib/telemetry/test_event.py150 # simply call this method in a new threadCOMMENT
LOW…ib/models/explicit_api_with_invalid_events_config.yaml5# When a Function's Event contains a path that is "not" in the Swagger, the behavior would be just add Lambda::PermissioCOMMENT
MEDIUMsamcli/local/docker/lambda_container.py218 # These options are required for delve to function properly inside a docker container on docker < 1.12COMMENT
MEDIUMsamcli/lib/providers/sam_stack_provider.py421 # absolute paths are not robust as relative paths. So here prefer to use relative path.COMMENT
MEDIUMsamcli/lib/utils/file_observer.py286 # specifically. This could be abstracted to potentially utilize aCOMMENT
LOWsamcli/lib/telemetry/telemetry.py62 # Endpoint not configured. So simply returnCOMMENT
LOWsamcli/commands/local/lib/local_lambda.py457 # If we were unable to load credentials, then just return result. We will use the defaultSTRING
LOWsamcli/commands/local/lib/swagger/reader.py135 # Inline Swagger, just return the contents which should already be a dictionaryCOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
LOW…templates/sar/api-lambda-update-dynamodb-template.yaml24 Description: The URL of the API Gateway to which you send a PUT request with edited data to update an item in your DCODE
LOW…emplates/sar/api-lambda-get-one-dynamodb-template.yaml21 Description: The URL of the API Gateway you invoke with a GET request to retrieve all of your items in the DynamoDB CODE
MEDIUM…ation/testdata/buildcmd/Rust/multi-binaries/Cargo.toml6# Starting in Rust 1.62 you can use `cargo add` to add dependenciesCOMMENT
Verbosity Indicators4 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/commands/package/test_package_context.py4136 # Step 1: Detect dynamic propertiesCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4140 # Step 2: Simulate exported resourcesCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4152 # Step 3: Generate MappingsCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4155 # Step 4: Apply Mappings to templateCOMMENT
Structural Annotation Overuse4 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/commands/package/test_package_context.py4136 # Step 1: Detect dynamic propertiesCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4140 # Step 2: Simulate exported resourcesCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4152 # Step 3: Generate MappingsCOMMENT
LOW⚡tests/unit/commands/package/test_package_context.py4155 # Step 4: Apply Mappings to templateCOMMENT
Fake / Example Data4 hits · 2 pts
SeverityFileLineSnippetContext
LOW…local/lambda_service/test_local_lambda_http_service.py1366 ("placeholder", PLACEHOLDER_ARN),CODE
LOW…local/lambda_service/test_local_lambda_http_service.py1387 ("placeholder", PLACEHOLDER_ARN),CODE
LOW…local/lambda_service/test_local_lambda_http_service.py1407 ("placeholder", PLACEHOLDER_ARN),CODE
LOWtests/unit/lib/utils/test_hash.py129 str_checksum("dummy-data")CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/unit/lib/hook/test_hook_wrapper.py227 def my_method(params):CODE