AI Slop Code Risk Monitor

aws/serverless-application-model

SlopCodeMonitor badge for aws/serverless-application-model Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.

3.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for aws/serverless-application-model, a Python project with 9,579 GitHub stars. SynthScan examined 522,042 lines of code across 3857 source files, recording 1728 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 3.6 (Low 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.

3.6
Adjusted Signal
3.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
9.6K
Stars
Python
Language
522.0K
Lines of Code
3.9K
Files
1.7K
Pattern Hits
2026-10-31
Scan Date
0.00
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-10-31.

Cognitive Ownership Risk 15.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 14.8/100 · LOW

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

PR Review Velocity Impact 16.2/100 · LOW

Which changes need focused human review? 1728 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

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

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 0HIGH 10MEDIUM 36LOW 1682

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 1728 distinct pattern matches across 16 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 Identifiers1508 hits · 1558 pts
SeverityFileLineSnippetContext
LOWbin/add_transform_test.py45def generate_transform_test_output_files(input_file_path: Path, file_basename: str) -> None:CODE
LOWbin/add_transform_test.py72def copy_input_file_to_transform_test_dir(input_file_path: Path, transform_test_input_path: Path) -> None:CODE
LOW⚡bin/public_interface.py33 def scan_interfaces_recursively(self, module_name: str) -> None:CODE
LOW⚡bin/public_interface.py41 def _scan_interfaces_in_module(self, module_name: str) -> None:CODE
LOW⚡bin/public_interface.py46 def _scan_functions_in_module(self, module_name: str) -> None:CODE
LOW⚡bin/public_interface.py56 def _scan_variables_in_module(self, module_name: str) -> None:CODE
LOWbin/public_interface.py159def _only_new_optional_arguments_or_existing_arguments_optionalized_or_var_arguments(CODE
LOWintegration/conftest.py79def setup_companion_stack_once(tmpdir_factory, get_prefix):CODE
LOWintegration/conftest.py94def _companion_stack_parameters():CODE
LOWintegration/conftest.py132def get_serverless_application_repository_app():CODE
LOWintegration/conftest.py213def delete_companion_stack_once(get_prefix):CODE
LOWintegration/conftest.py249def get_companion_stack_outputs(get_prefix):CODE
LOWintegration/metrics/test_metrics_integration.py24 def test_publish_single_metric(self):CODE
LOWintegration/combination/test_state_machine_with_cwe.py14 def test_state_machine_with_cwe(self):CODE
LOWintegration/combination/test_websocket_api_multiple.py14 def test_websocket_multi_route(self):CODE
LOW⚡integration/combination/test_function_with_msk.py17 def test_function_with_msk_trigger(self):CODE
LOW⚡integration/combination/test_function_with_msk.py21 def test_function_with_msk_trigger_using_manage_policy(self):CODE
LOW⚡integration/combination/test_function_with_msk.py31 def test_function_with_msk_trigger_and_premium_features(self):CODE
LOW…est_websocket_api_with_disable_execute_api_endpoint.py13 def test_disable_execute_api_endpoint_true(self, is_disable):CODE
LOW…tion/test_state_machine_with_schedule_dlq_generated.py11 def test_state_machine_with_schedule(self):CODE
LOW…tion/test_state_machine_with_schedule_dlq_generated.py81def get_first_key_value_pair_in_dict(dictionary):CODE
LOW…ation/combination/test_custom_http_api_domains_test.py19 def test_custom_http_api_domains_regional(self):CODE
LOW…ation/combination/test_custom_http_api_domains_test.py47 def test_custom_http_api_domains_regional_ownership_verification(self):CODE
LOW…mbination/test_api_and_http_api_with_propagate_tags.py13 def test_api_and_httpapi_with_propagate_tags(self):CODE
LOW…n/test_function_with_intrinsics_resource_attributes.py5 def test_function_with_intrinsics_resource_attributes(self):CODE
LOW…egration/combination/test_api_with_fail_on_warnings.py18 def test_end_point_configuration(self, file_name, disable_value):CODE
LOW…ation/combination/test_websocket_api_custom_domains.py21 def test_websocket_custom_api_domains_regional(self):CODE
LOW…ion/combination/test_function_with_policy_templates.py6 def test_with_policy_templates(self):CODE
LOW…ion/combination/test_function_with_policy_templates.py56 def test_all_policy_templates(self):CODE
LOWintegration/combination/test_function_with_http_api.py16 def test_function_with_http_api(self):CODE
LOWintegration/combination/test_function_with_http_api.py25 def test_function_with_http_api_default_path(self):CODE
LOW⚡…gration/combination/test_intrinsic_function_support.py17 def test_serverless_function_property_support(self):CODE
LOW⚡…gration/combination/test_intrinsic_function_support.py25 def test_definition_uri_support(self):CODE
LOW⚡…gration/combination/test_intrinsic_function_support.py31 def test_severless_api_properties_support(self):CODE
LOW…ration/combination/test_state_machine_with_schedule.py23 def test_state_machine_with_schedule(self, template_file_path):CODE
LOW…gration/combination/test_websocket_api_route_config.py11 def test_websocket_api_route_config(self):CODE
LOW…tion/test_function_with_implicit_api_and_conditions.py10 def test_function_with_implicit_api_and_conditions(self):CODE
LOW…tion/combination/test_function_with_user_pool_event.py10 def test_function_with_user_pool_event(self):CODE
LOWintegration/combination/test_websocket_api_basic.py33 def test_websocket_api_basic_config(self):CODE
LOW…ion/test_http_api_with_disable_execute_api_endpoint.py18 def test_disable_execute_api_endpoint_true(self, file_name, is_disable):CODE
LOW…n/combination/test_function_with_file_system_config.py16 def test_function_with_efs_integration(self):CODE
LOW…mbination/test_function_with_schedule_dlq_generated.py11 def test_function_with_schedule(self):CODE
LOW…mbination/test_function_with_schedule_dlq_generated.py86def get_first_key_value_pair_in_dict(dictionary):CODE
LOWintegration/combination/test_http_api_with_auth.py10 def test_function_with_user_pool_event(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py13 def test_function_with_all_event_types(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py103 def test_function_with_all_event_types_condition_false(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py119def _get_actual_bucket_configuration_events(configurations):CODE
LOW…on/combination/test_function_with_capacity_provider.py26 def verify_capacity_provider_basic_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py34 def verify_capacity_provider_vpc_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py49 def verify_capacity_provider_permissions_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py57 def verify_function_capacity_provider_config(self, function_capacity_provider_config):CODE
LOW…on/combination/test_function_with_capacity_provider.py73 def verify_capacity_provider_arn_match(self, function_capacity_provider_arn, capacity_provider_arn):CODE
LOW…on/combination/test_function_with_capacity_provider.py81 def test_function_with_capacity_provider_custom_role(self):CODE
LOW…on/combination/test_function_with_capacity_provider.py119 def test_function_with_capacity_provider_default_role(self):CODE
LOW⚡…on/combination/test_function_with_capacity_provider.py224 def get_function_capacity_provider_config(self, function_name, alias_name=None):CODE
LOW⚡…on/combination/test_function_with_capacity_provider.py239 def get_lambda_capacity_provider_config(self, capacity_provider_logical_id):CODE
LOW…egration/combination/test_function_with_application.py16 def test_function_referencing_outputs_from_application(self):CODE
LOW…on/test_function_with_schedule_dlq_and_retry_policy.py10 def test_function_with_schedule(self):CODE
LOW…gration/combination/test_api_with_resource_policies.py11 def test_api_resource_policies(self):CODE
LOW…gration/combination/test_api_with_resource_policies.py145 def test_api_resource_policies_aws_account(self):CODE
1448 more matches not shown…
Self-Referential Comments20 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMintegration/single/test_basic_api.py44 # Create an API with get and putCOMMENT
MEDIUM⚡tests/test_plugins.py113 # Create a mock of LifeCycleEvents object with ONE event called "my_event"COMMENT
MEDIUM⚡tests/test_plugins.py215 # Create a plugin but setup hook method with wrong nameCOMMENT
MEDIUM⚡tests/test_plugins.py226 # Create a plugin but setup hook method with wrong nameCOMMENT
MEDIUMtests/test_plugins.py170 # Create a parent mock and attach child mocks to help assert order of the callsCOMMENT
MEDIUMtests/test_plugins.py250 # Create a parent mock and attach child mocks to help assert order of the callsCOMMENT
MEDIUM⚡tests/translator/test_logical_id_generator.py78 new = LogicalIdGenerator(self.prefix, data_obj=data.copy()).gen() # Create a copy of data objCODE
MEDIUM…r/input/capacity_provider_with_mulitple_functions.yaml11 # Define a capacity provider resourceCOMMENT
MEDIUMtests/model/eventsources/test_msk_event_source.py324 # Create a mock functionCOMMENT
MEDIUM…l/eventsources/test_self_managed_kafka_event_source.py1048 # Create a mock functionCOMMENT
MEDIUMtests/model/api/test_api_generator.py55 # Create a simple swagger definition with paths that differ only by trailing slashCOMMENT
MEDIUMsamtranslator/plugins/sam_plugins.py33 ### Defining a pluginSTRING
MEDIUMsamtranslator/model/__init__.py628 # Create a map of {ResourceType: LogicalId} for quick accessCOMMENT
MEDIUMsamtranslator/model/sam_resources.py4321 # This function is only called if it is a pipeline resolver, in which case this property is checked to exist befCOMMENT
MEDIUMsamtranslator/model/api/apiv2_generator.py151 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py584 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py687 # Create the DomainNameAccessAssociationCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py695 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/capacity_provider/generators.py72 # Create the Lambda CapacityProvider resourceCOMMENT
MEDIUMsamtranslator/model/capacity_provider/generators.py207 # Create the SAM tag using the helper methodCOMMENT
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…ation/combination/test_graphqlapi_pipeline_resolver.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGH…gration/combination/test_graphqlapi_lambda_resolver.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGHintegration/single/test_graphqlapi_configuration.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGHsamtranslator/plugins/api/implicit_rest_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_http_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_rest_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
HIGHsamtranslator/plugins/api/implicit_http_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
HIGHsamtranslator/plugins/api/implicit_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
Deep Nesting46 hits · 40 pts
SeverityFileLineSnippetContext
LOWintegration/helpers/base_test.py262CODE
LOWtests/test_types.py9CODE
LOWtests/translator/test_translator.py104CODE
LOWtests/translator/test_translator.py190CODE
LOWtests/model/eventsources/test_msk_event_source.py191CODE
LOW…l/eventsources/test_self_managed_kafka_event_source.py833CODE
LOWsamtranslator/swagger/swagger.py253CODE
LOWsamtranslator/swagger/swagger.py824CODE
LOWsamtranslator/plugins/globals/globals.py285CODE
LOW…anslator/plugins/api/default_definition_body_plugin.py18CODE
LOWsamtranslator/plugins/api/implicit_api_plugin.py345CODE
LOWsamtranslator/plugins/api/implicit_api_plugin.py403CODE
LOW…ranslator/plugins/application/serverless_app_plugin.py109CODE
LOW…ranslator/plugins/application/serverless_app_plugin.py348CODE
LOWsamtranslator/utils/actions.py27CODE
LOWsamtranslator/utils/py27hash_fix.py23CODE
LOWsamtranslator/utils/py27hash_fix.py606CODE
LOWsamtranslator/utils/py27hash_fix.py629CODE
LOWsamtranslator/translator/translator.py78CODE
LOWsamtranslator/translator/translator.py109CODE
LOWsamtranslator/translator/translator.py277CODE
LOWsamtranslator/translator/translator.py344CODE
LOWsamtranslator/model/apigatewayv2.py306CODE
LOWsamtranslator/model/__init__.py720CODE
LOWsamtranslator/model/__init__.py761CODE
LOWsamtranslator/model/apigateway.py407CODE
LOWsamtranslator/model/sam_resources.py503CODE
LOWsamtranslator/model/sam_resources.py565CODE
LOWsamtranslator/model/sam_resources.py1142CODE
LOWsamtranslator/model/sam_resources.py2198CODE
LOWsamtranslator/model/sam_resources.py3188CODE
LOWsamtranslator/model/sam_resources.py3623CODE
LOWsamtranslator/model/eventsources/pull.py118CODE
LOWsamtranslator/model/eventsources/pull.py257CODE
LOWsamtranslator/model/eventsources/pull.py768CODE
LOWsamtranslator/model/eventsources/push.py851CODE
LOWsamtranslator/model/eventsources/push.py1077CODE
LOWsamtranslator/model/role_utils/role_constructor.py92CODE
LOWsamtranslator/model/api/apiv2_generator.py57CODE
LOWsamtranslator/model/api/api_generator.py484CODE
LOWsamtranslator/model/api/api_generator.py945CODE
LOWsamtranslator/model/api/api_generator.py1349CODE
LOWsamtranslator/model/api/http_api_generator.py168CODE
LOWsamtranslator/model/stepfunctions/generators.py332CODE
LOWsamtranslator/open_api/open_api.py171CODE
LOWsamtranslator/open_api/open_api.py249CODE
Excessive Try-Catch Wrapping27 hits · 38 pts
SeverityFileLineSnippetContext
LOWbin/add_transform_test.py78 except Exception as e:CODE
LOWbin/_file_formatter.py54 except Exception as error:CODE
LOW⚡…on/combination/test_function_with_capacity_provider.py234 except Exception as e:CODE
MEDIUM⚡…on/combination/test_function_with_capacity_provider.py236 print(f"Error getting function capacity provider config: {e}")CODE
LOW⚡…on/combination/test_function_with_capacity_provider.py248 except Exception as e:CODE
MEDIUM⚡…on/combination/test_function_with_capacity_provider.py250 print(f"Error getting capacity provider config for {capacity_provider_logical_id}: {e}")CODE
LOWintegration/setup/companion-stack.yaml403 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml405 except Exception as e: print(f"api err: {e}")CODE
LOWintegration/setup/companion-stack.yaml423 except Exception: passCODE
LOW⚡integration/setup/companion-stack.yaml443 except Exception: passCODE
LOW⚡integration/setup/companion-stack.yaml444 except Exception as e:CODE
LOW⚡integration/setup/companion-stack.yaml454 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml465 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml482 except Exception: passCODE
MEDIUMintegration/setup/companion-stack.yaml392def _sweep_apis(apig, cutoff, ctx):CODE
MEDIUMintegration/setup/companion-stack.yaml425def _fix_and_retry(cfn, iam, name):CODE
MEDIUMintegration/setup/companion-stack.yaml447def _force_delete_role(iam, role):CODE
MEDIUMintegration/setup/companion-stack.yaml456def _force_delete_policy(iam, arn):CODE
LOWintegration/helpers/deployer/deployer.py179 except Exception as ex:CODE
LOWintegration/helpers/deployer/deployer.py382 except Exception as ex:CODE
MEDIUMintegration/helpers/deployer/deployer.py168def _create_change_set(self, stack_name, changeset_type, **kwargs):CODE
LOWsamtranslator/metrics/metrics.py65 except Exception:CODE
LOWsamtranslator/metrics/method_decorator.py82 except Exception as e:CODE
LOWsamtranslator/plugins/sam_plugins.py134 except Exception as ex:CODE
LOWsamtranslator/feature_toggle/feature_toggle.py159 except Exception:CODE
LOWsamtranslator/model/__init__.py782 except Exception:CODE
LOWsamtranslator/model/sam_resources.py829 except Exception as e:CODE
Unused Imports38 hits · 38 pts
SeverityFileLineSnippetContext
LOW…/internal/schema_source/aws_serverless_microvmimage.py1CODE
LOW…or/internal/schema_source/aws_serverless_graphqlapi.py1CODE
LOW…ranslator/internal/schema_source/aws_serverless_api.py1CODE
LOW…ator/internal/schema_source/aws_serverless_function.py1CODE
LOW…ernal/schema_source/aws_serverless_networkconnector.py1CODE
LOW…rnal/schema_source/aws_serverless_capacity_provider.py1CODE
LOW…/internal/schema_source/aws_serverless_statemachine.py1CODE
LOW…r/internal/schema_source/aws_serverless_application.py1CODE
LOW…/internal/schema_source/aws_serverless_websocketapi.py1CODE
LOW…r/internal/schema_source/aws_serverless_webfunction.py1CODE
LOW…r/internal/schema_source/aws_serverless_simpletable.py1CODE
LOW…/internal/schema_source/aws_serverless_layerversion.py1CODE
LOWsamtranslator/internal/schema_source/schema.py1CODE
LOW…lator/internal/schema_source/aws_serverless_httpapi.py1CODE
LOWsamtranslator/public/plugins.py3CODE
LOWsamtranslator/public/swagger.py3CODE
LOWsamtranslator/public/models.py1CODE
LOWsamtranslator/public/models.py1CODE
LOWsamtranslator/public/open_api.py3CODE
LOWsamtranslator/public/intrinsics.py3CODE
LOWsamtranslator/public/intrinsics.py4CODE
LOWsamtranslator/public/parser.py1CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/translator.py7CODE
LOWsamtranslator/public/translator.py8CODE
LOWsamtranslator/public/sdk/resource.py3CODE
LOWsamtranslator/public/sdk/resource.py3CODE
LOWsamtranslator/public/sdk/template.py3CODE
LOWsamtranslator/public/sdk/parameter.py1CODE
LOWsamtranslator/model/__init__.py18CODE
LOWsamtranslator/model/role_utils/__init__.py3CODE
LOWsamtranslator/model/stepfunctions/__init__.py9CODE
LOWsamtranslator/model/stepfunctions/__init__.py10CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
AI Slop Vocabulary12 hits · 24 pts
SeverityFileLineSnippetContext
LOWintegration/combination/test_function_with_alias.py204 # Exclude $LATEST from the list and simply return all the version numbers.COMMENT
MEDIUM…tes/combination/function_with_deployment_disabled.yaml2 # The test harness passes theses parameters even though they aren't used. So specify them hereCOMMENT
LOWintegration/helpers/common_api.py33 # Exclude $LATEST from the list and simply return all the version numbers.COMMENT
LOW…tor/input/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
MEDIUMsamtranslator/feature_toggle/feature_toggle.py121 """Feature toggle config provider which uses a local file. This is to facilitate local testing."""STRING
LOWsamtranslator/model/resource_policies.py143 # Nothing matches. Don't take opinions on how to handle it. Instead just set the appropriate type.COMMENT
MEDIUMsamtranslator/model/apigateway.py141 # Using int so tests are a little more robust; don't think the Python spec defines default precisionCOMMENT
MEDIUMsamtranslator/model/sam_resources.py826 # Validate CapacityProviderConfig using Pydantic model directly for comprehensive error collectionCOMMENT
MEDIUMsamtranslator/model/sam_resources.py1599 # Use enhanced validation method with comprehensive error collectionCOMMENT
LOWsamtranslator/model/connector_profiles/profile.py72 # s and pattern match exactly, simply return replacement stringCOMMENT
LOWsamtranslator/intrinsics/actions.py533 # Value must be an array with enough elements. If not, this is invalid GetAtt syntax. We just pass alongCOMMENT
LOWsamtranslator/intrinsics/actions.py539 # we just pass along the input to CFN for doing the validationCOMMENT
Redundant / Tautological Comments15 hits · 23 pts
SeverityFileLineSnippetContext
LOWbin/git_lfs_download.sh7# Check if a URL parameter is providedCOMMENT
LOWintegration/combination/test_state_machine_with_cwe.py23 # Check if the CWE rule is created with the state machine as the targetCOMMENT
LOW…mbination/test_state_machine_with_cwe_dlq_generated.py26 # Check if the CWE rule is created with the state machine as the targetCOMMENT
LOWintegration/single/test_basic_function.py191 # Check if the InvokePermission has InvokedViaFunctionUrl: TrueCOMMENT
LOW⚡tests/sdk/test_template.py107 # Check if it existsCOMMENT
LOWsamtranslator/swagger/swagger.py99 # Check if the OpenAPI version is 3.0, if it is then the extension needs to added to the Servers field,COMMENT
LOWsamtranslator/swagger/swagger.py589 # Check if Function/Path/Method specified 'NONE' for AuthorizerCOMMENT
LOWsamtranslator/swagger/swagger.py661 # Check if Function/Path/Method specified 'False' for ApiKeyRequiredCOMMENT
LOWsamtranslator/utils/actions.py41 # Check if DependsOn matches the original value of a changed_logical_id keyCOMMENT
LOWsamtranslator/utils/py27hash_fix.py642 # Check if there is explicit HttpApi resourceCOMMENT
LOWsamtranslator/utils/py27hash_fix.py651 # Check if there is any httpapi event for implicit apiCOMMENT
LOWsamtranslator/model/__init__.py73 # Check if validator has enum_values attribute (from IS_STR_ENUM)COMMENT
LOWsamtranslator/model/__init__.py734 # Check if more than one property existsCOMMENT
LOWsamtranslator/model/__init__.py741 # Check if some but not all properties from the group are presentCOMMENT
LOWsamtranslator/intrinsics/actions.py26 # Check if the value is a CloudFormation internal placeholderCOMMENT
Modern Structural Boilerplate21 hits · 22 pts
SeverityFileLineSnippetContext
LOWsamtranslator/compat.py15__all__ = ["pydantic"]CODE
LOWsamtranslator/metrics/method_decorator.py32 def set_instance(metrics: Metrics) -> None:CODE
LOWsamtranslator/swagger/swagger.py621 def set_path_default_apikey_required(self, path: str, required_options_api_key: bool = True) -> None:CODE
LOWsamtranslator/public/plugins.py1__all__ = ["BasePlugin"]CODE
LOWsamtranslator/public/swagger.py1__all__ = ["SwaggerEditor"]CODE
LOWsamtranslator/public/open_api.py1__all__ = ["OpenApiEditor"]CODE
LOWsamtranslator/public/intrinsics.py1__all__ = ["IntrinsicsResolver", "is_intrinsics"]CODE
LOWsamtranslator/public/exceptions.py1__all__ = ["InvalidDocumentException", "InvalidEventException", "InvalidResourceException"]CODE
LOWsamtranslator/public/translator.py5__all__ = ["ManagedPolicyLoader", "Translator"]CODE
LOWsamtranslator/public/sdk/resource.py1__all__ = ["SamResource", "SamResourceType"]CODE
LOWsamtranslator/public/sdk/template.py1__all__ = ["SamTemplate"]CODE
LOWsamtranslator/model/__init__.py467 def set_resource_attribute(self, attr: str, value: Any) -> None:CODE
LOWsamtranslator/model/apigateway.py77 def update_deployment_ref(self, deployment_logical_id: str) -> None:CODE
LOWsamtranslator/model/role_utils/__init__.py1__all__ = ["construct_role_for_resource"]CODE
LOWsamtranslator/model/api/apiv2_generator.py257 def _update_route53_routing_policy_properties(route53_config: dict[str, Any], recordset: dict[str, Any]) -> None:CODE
LOW⚡samtranslator/model/api/api_generator.py1549 def _set_default_apikey_required(self, swagger_editor: SwaggerEditor, required_options_api_key: bool) -> None:CODE
LOW⚡samtranslator/model/api/api_generator.py1553 def _set_endpoint_configuration(self, rest_api: ApiGatewayRestApi, value: Union[str, dict[str, Any]]) -> None:CODE
LOWsamtranslator/model/api/api_generator.py742 def _set_optional_domain_properties(self, domain: Union[ApiGatewayDomainName, ApiGatewayDomainNameV2]) -> None:CODE
LOWsamtranslator/model/api/api_generator.py805 def _update_route53_routing_policy_properties(route53_config: dict[str, Any], recordset: dict[str, Any]) -> None:CODE
LOWsamtranslator/model/api/http_api_generator.py232 def _update_default_path(self) -> None:CODE
LOWsamtranslator/model/stepfunctions/__init__.py1__all__ = [CODE
Over-Commented Block12 hits · 10 pts
SeverityFileLineSnippetContext
LOWsetup.py1# -*- coding: utf-8 -*-COMMENT
LOWintegration/single/test_basic_function.py341 function_configuration_result["TracingConfig"]["Mode"],COMMENT
LOWintegration/helpers/deployer/deployer.py1"""COMMENT
LOWintegration/helpers/deployer/utils/artifact_exporter.py1"""COMMENT
LOWtests/plugins/application/test_serverless_app_plugin.py361# itertools.product([COMMENT
LOWsamtranslator/public/__init__.py1# flake8: noqaCOMMENT
LOWsamtranslator/model/__init__.py141 resource_type: str = None # type: ignoreCOMMENT
LOWsamtranslator/model/__init__.py581# Property names support "Property.Path=Value" syntax for value-conditional presence checksCOMMENT
LOWsamtranslator/model/sam_resources.py1161 raise ValueError("Lambda function code must be a valid non-empty dictionary")COMMENT
LOWsamtranslator/model/sam_resources.py1181 # to trigger creation of a new version every time code location changes. Since logicalId changes, CloudFormationCOMMENT
LOWsamtranslator/intrinsics/resolver.py121 """COMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWintegration/helpers/s3_uploader.py47CODE
LOWsamtranslator/model/apigatewayv2.py187CODE
LOWsamtranslator/model/apigateway.py331CODE
LOWsamtranslator/model/api/apiv2_generator.py16CODE
LOWsamtranslator/model/api/websocket_api_generator.py32CODE
LOWsamtranslator/model/api/api_generator.py186CODE
LOWsamtranslator/model/api/http_api_generator.py37CODE
LOWsamtranslator/model/microvm_image/generators.py23CODE
LOWsamtranslator/model/stepfunctions/generators.py31CODE
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…/model/preferences/deployment_preference_collection.py108 # If there are any enabled deployment preferences without conditions, return falseCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsamtranslator/internal/schema_source/sam-docs.json973 "AutoDeploymentMode": "How the endpoint routes traffic across revisions. \n+ `LatestRevision`: sends 100% of trafCODE
MEDIUMschema_source/sam.schema.json11270 "markdownDescription": "How the endpoint routes traffic across revisions. \n+ `LatestRevision`: sends 100% ofCODE
MEDIUMschema_source/sam.schema.json11406 "markdownDescription": "How the endpoint routes traffic across revisions. \n+ `LatestRevision`: sends 100% ofCODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/translator/input/websocket_api_description.yaml10 Description: Lorem IpsumCODE
LOWtests/translator/output/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
LOW…ranslator/output/aws-cn/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
LOW…lator/output/aws-us-gov/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/plugins/globals/test_globals.py237 # ─── Multi-level nested dot-path rules ──────────────────────────────────────COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/metrics/test_method_decorator.py15 def my_method(self):CODE
LOW⚡tests/metrics/test_method_decorator.py43 def my_function():CODE