AI Slop Code RIsk Monitor

getmoto/moto

A library that allows you to easily mock out tests based on AWS infrastructure.

6.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for getmoto/moto, a Python project with 8,695 GitHub stars. SynthScan examined 2,066,204 lines of code across 3150 source files, recording 13063 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 6.9 (Moderate pattern signal); it is not an authorship estimate.

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

6.9
Adjusted Signal
6.9
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
8.7K
Stars
Python
Language
2.1M
Lines of Code
3.1K
Files
13.1K
Pattern Hits
2026-10-12
Scan Date
0.09
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 24.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.3/100 · LOW

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

Agent Over-Engineering Ratio 23.1/100 · LOW

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

PR Review Velocity Impact 31.6/100 · MEDIUM

Which changes need focused human review? 13063 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 122HIGH 158MEDIUM 363LOW 12420

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 13063 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers10963 hits · 9846 pts
SeverityFileLineSnippetContext
LOWtests/test_timestreamquery/test_timestreamquery.py16def test_create_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py60def test_delete_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py81def test_update_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py102def test_query_default_results():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py112def test_query__configured_results():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py23def test_create_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py37def test_list_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py51def test_get_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py64def test_delete_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py78def test_create_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py93def test_list_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py107def test_get_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py121def test_delete_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py215def test_associate_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py246def test_associate_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py276def test_create_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py325def test_delete_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py339def test_associate_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py368def test_create_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py378def test_get_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py394def test_list_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py404def test_delete_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py415def test_associate_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py443def test_list_tags_for_resource():CODE
LOW…sts/test_ssm/test_ssm_parameterstore_cloudformation.py11def test_cloudformation_lifecycle():CODE
LOW…sts/test_ssm/test_ssm_parameterstore_cloudformation.py79def test_cloudformation_lifecycle_with_parsing():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py13def test_get_value_from_secrets_manager__by_name():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py39def test_get_value_from_secrets_manager__without_decryption():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py52def test_get_value_from_secrets_manager__with_decryption_false():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py67def test_get_value_from_secrets_manager__by_id():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py97def test_get_value_from_secrets_manager__by_version():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py114def test_get_value_from_secrets_manager__param_does_not_exist():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py9def test_describe_maintenance_window():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py22def test_create_maintenance_windows_simple():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py54def test_create_maintenance_windows_advanced():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py91def test_get_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py126def test_describe_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py148def test_delete_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py232def test_register_maintenance_window_target():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py263def test_deregister_target_from_maintenance_window():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py294def test_describe_maintenance_window_with_no_task_or_targets():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py318def test_register_maintenance_window_task():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py361def test_deregister_maintenance_window_task():CODE
LOWtests/test_ssm/test_ssm_cloudformation.py11def test_get_command_invocations_from_stack():CODE
LOWtests/test_ssm/test_ssm_cloudformation.py129def get_ssm_document_template(document_name: str):CODE
LOWtests/test_ssm/test_ssm_patch_group.py13def test_register_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py52def test_register_patch_baseline_for_patch_group_invalid_id():CODE
LOWtests/test_ssm/test_ssm_patch_group.py66def test_register_patch_baseline_for_patch_group_already_exists():CODE
LOWtests/test_ssm/test_ssm_patch_group.py118def test_get_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py161def test_get_patch_baseline_for_patch_group_default():CODE
LOWtests/test_ssm/test_ssm_patch_group.py178def test_deregister_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py221def test_deregister_patch_baseline_for_patch_group_default():CODE
LOWtests/test_ssm/test_ssm_patch_group.py237def test_deregister_patch_baseline_for_patch_group_invalid_id():CODE
LOWtests/test_ssm/test_ssm_ec2_integration.py15def test_ssm_get_latest_ami_by_path():CODE
LOWtests/test_ssm/test_ssm_docs.py22def _validate_document_description(CODE
LOWtests/test_ssm/test_ssm_docs.py463def test_update_document_default_version():CODE
LOWtests/test_ssm/test_ssm_docs.py762def test_tags_in_list_tags_from_resource_document():CODE
LOW⚡tests/test_ssm/test_ssm.py1431def test_tags_invalid_resource_id():CODE
LOW⚡tests/test_ssm/test_ssm.py1440def test_tags_invalid_resource_type():CODE
LOW⚡tests/test_ssm/test_ssm.py1449def test_get_parameter_invalid():CODE
10903 more matches not shown…
Hallucination Indicators122 hits · 1220 pts
SeverityFileLineSnippetContext
CRITICALtests/test_cognitoidp/test_cognitoidp.py93 ) in moto.cognitoidp.models.CognitoIdpUserPoolAttribute.STANDARD_SCHEMA.items():CODE
CRITICALtests/test_acmpca/test_acmpca.py469 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py660 key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py962 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py1019 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_s3/test_s3_acl.py91 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALtests/test_s3/test_s3_acl.py134 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALtests/test_s3/test_s3.py1067 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALmoto/forecast/exceptions.py1from moto.core.exceptions import AWSErrorCODE
CRITICALmoto/timestreamwrite/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/codebuild/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kinesis/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/pinpoint/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/shield/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediastoredata/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicecatalog/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/timestreaminfluxdb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/lakeformation/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/secretsmanager/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediaconnect/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kms/models.py10from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kms/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/iotdata/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/quicksight/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/glue/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicequotas/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/personalize/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/networkmanager/exceptions.py5from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediapackage/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/datasync/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/fis/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/ds/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/cognitoidentity/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/config/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/osis/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/memorydb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/paymentcryptography/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/vpclattice/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/wafv2/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/opensearch/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/cognitoidp/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/glacier/models.py7from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/bedrockagent/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/transfer/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/scheduler/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/resourcegroups/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/dynamodb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/dynamodb/models/__init__.py8from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/resiliencehub/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/route53domains/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/macie2/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/applicationautoscaling/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/route53resolver/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/workspaces/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/fsx/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/codepipeline/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicecatalogappregistry/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/appmesh/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/iot/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/bedrock/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
62 more matches not shown…
Self-Referential Comments321 hits · 978 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_ssm/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py20 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py36 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py73 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py89 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py125 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py141 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py185 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py201 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py244 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py260 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py13 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py29 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py65 # Create the patch baselineCOMMENT
MEDIUMtests/test_redshift/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_dynamodb_v20111205/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_dynamodbstreams/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_emr/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_logs/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_logs/test_logs.py446 # Create the maximum number of resource policies.COMMENT
MEDIUMtests/test_logs/test_logs.py474 # Create a bunch of resource policies so we can give delete a workout.COMMENT
MEDIUMtests/test_logs/test_logs.py507 # Create the maximum number of resource policies so there's somethingCOMMENT
MEDIUMtests/test_logs/test_integration.py276 # Create a S3 bucket.COMMENT
MEDIUMtests/test_logs/test_integration.py281 # Create the Firehose delivery stream that uses that S3 bucket asCOMMENT
MEDIUMtests/test_logs/test_integration.py353 # Create a DataStreamCOMMENT
MEDIUMtests/test_logs/test_integration.py409 # Create a LogGroup in a different regionCOMMENT
MEDIUMtests/test_sns/test_application.py253 # Creating a platform endpoint with different attributes failsCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py191 # Create the jobCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py212 # Create the jobCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py257 # Create the jobCOMMENT
MEDIUM…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py541 # Create a botCOMMENT
MEDIUM…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py551 # Create a bot alias with tagsCOMMENT
MEDIUM…taggingapi/test_resourcegroupstaggingapi_workspaces.py61 # Create a tagged WorkspaceCOMMENT
MEDIUMtests/test_kinesis/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_stepfunctions/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_identitystore/test_identitystore.py695 # Create a bunch of groupsCOMMENT
MEDIUMtests/test_identitystore/test_identitystore.py808 # Create a second test group to see if it is not returnedCOMMENT
MEDIUMtests/test_identitystore/test_identitystore.py1004 # Create a second user to see if it is not returnedCOMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py23 # Create a delivery stream to work with.COMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py81 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py142 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_firehose/test_firehose_put.py111 # Create a S3 bucket.COMMENT
MEDIUMtests/test_firehose/test_firehose_integration.py11 # Create a tagged delivery streamCOMMENT
MEDIUMtests/test_firehose/test_firehose.py98 # Create a stream with the same name as an existing stream.COMMENT
MEDIUMtests/test_firehose/test_firehose.py168 # Create a couple of streams to test with.COMMENT
MEDIUMtests/test_firehose/test_firehose.py362 # Create a couple of streams of both types to test with.COMMENT
MEDIUMtests/test_firehose/test_firehose.py451 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_networkfirewall/test_networkfirewall.py51 # Create a logging configurationCOMMENT
MEDIUMtests/test_secretsmanager/test_server.py916 # Create a new versionCOMMENT
MEDIUMtests/test_secretsmanager/test_server.py996 # Create a new versionCOMMENT
MEDIUMtests/test_secretsmanager/test_secretsmanager.py1933 # Create a third version with one of the old stagesSTRING
MEDIUMtests/test_datapipeline/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_networkmanager/test_networkmanager.py48 # Create a global networkCOMMENT
MEDIUMtests/test_glacier/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py143 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py223 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py352 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py576 # Create the memberCOMMENT
MEDIUM…st_managedblockchain/test_managedblockchain_members.py52 # Create the memberCOMMENT
MEDIUM…st_managedblockchain/test_managedblockchain_members.py144 # Create the memberCOMMENT
261 more matches not shown…
Empty Error Handlers102 hits · 510 pts
SeverityFileLineSnippetContext
HIGHtests/test_awslambda/test_awslambda_cloudformation.py368except ClientError:CODE
HIGHtests/test_awslambda/test_lambda_invoke.py53except RuntimeError:CODE
HIGHtests/test_awslambda/test_lambda_invoke.py107except RuntimeError:CODE
HIGHtests/test_awslambda/test_lambda.py1751except Exception:CODE
HIGHtests/test_awslambda/utilities.py194except ClientError:CODE
HIGHtests/test_dynamodbstreams/test_dynamodbstreams.py37except RuntimeError:CODE
HIGHtests/test_sqs/test_sqs_integration.py211except: # noqa: E722 Do not use bare exceptCODE
HIGHtests/test_cognitoidp/test_cognitoidp_replay.py89except: # noqa: E722 Do not use bare exceptCODE
HIGHtests/test_core/test_environ_patching.py41except KeyError:CODE
HIGHtests/test_core/test_server.py21except SystemExit:CODE
HIGH…ts/test_awslambda_simple/test_lambda_cloudformation.py68except ClientError:CODE
HIGHtests/test_rds/test_filters.py37except RuntimeError:CODE
HIGHtests/test_rds/test_filters.py224except RuntimeError:CODE
HIGHtests/test_rds/test_filters.py422except RuntimeError:CODE
HIGHtests/test_elbv2/test_elbv2_target_health.py301except: # noqa: E722 Do not use bare exceptCODE
HIGHtests/test_elbv2/test_elbv2_target_health.py446except WaiterError:CODE
HIGHmoto/server.py66except Exception:CODE
HIGHmoto/proxy.py82except Exception:CODE
HIGHmoto/organizations/models.py121except EntityAlreadyExists:CODE
HIGHmoto/ssm/models.py291except json.JSONDecodeError:CODE
HIGHmoto/ssm/models.py1667except KeyError:CODE
HIGHmoto/ssm/models.py1904except ParameterVersionNotFound:CODE
HIGHmoto/secretsmanager/models.py893except StopIteration:CODE
HIGHmoto/s3/responses.py622except S3ClientError:CODE
HIGHmoto/s3/responses.py968except KeyError:CODE
HIGHmoto/s3/models.py434except: # noqa: E722 Do not use bare exceptCODE
HIGHmoto/s3/models.py1860except: # noqa: E722 Do not use bare exceptCODE
HIGHmoto/s3/models.py1237except KeyError:CODE
HIGHmoto/s3/utils.py150except (KeyError, IndexError):CODE
HIGHmoto/s3/utils.py157except (KeyError, IndexError):CODE
HIGHmoto/s3/notifications.py145except: # noqaCODE
HIGHmoto/s3/notifications.py161except: # noqaCODE
HIGHmoto/s3/notifications.py208except: # noqaCODE
HIGHmoto/s3/notifications.py270except: # noqaCODE
HIGHmoto/emr/utils.py318except InvalidPermissionDuplicateError:CODE
HIGHmoto/core/serialize.py1449except AttributeError:CODE
HIGHmoto/core/responses.py309except UnicodeDecodeError:CODE
HIGHmoto/core/responses.py594except Exception: # Will just ignore if it cant workCODE
HIGHmoto/core/responses.py610except (ValueError, KeyError):CODE
HIGHmoto/core/responses.py617except IndexError:CODE
HIGHmoto/core/responses.py302except (UnicodeEncodeError, UnicodeDecodeError, AttributeError):CODE
HIGHmoto/core/models.py296except: # noqa: E722 Do not use bare exceptCODE
HIGHmoto/core/parse.py236except AttributeError:CODE
HIGHmoto/core/parse.py499except AttributeError:CODE
HIGHmoto/sns/models.py879except KeyError:CODE
HIGHmoto/sns/models.py1225except ValueError:CODE
HIGHmoto/sns/models.py658except QueueDoesNotExist:CODE
HIGHmoto/sns/utils.py199except (ValueError, TypeError):CODE
HIGHmoto/cloudfront/models.py621except KeyError:CODE
HIGHmoto/cognitoidp/models.py282except ValueError:CODE
HIGHmoto/moto_server/werkzeug_app.py281except (KeyError, ValueError):CODE
HIGHmoto/moto_api/_internal/responses.py73except (TypeError, AttributeError, ValueError):CODE
HIGHmoto/ecr/models.py828except KeyError:CODE
HIGHmoto/dynamodb/parsing/executors.py173except (KeyError, ValueError):CODE
HIGHmoto/dynamodb/parsing/executors.py214except IndexError:CODE
HIGHmoto/elb/models.py260except KeyError:CODE
HIGHmoto/elb/models.py472except InvalidInstanceIdError:CODE
HIGHmoto/sqs/responses.py54except (AttributeError, TypeError):CODE
HIGHmoto/sqs/models.py705except KeyError:CODE
HIGHmoto/sqs/models.py723except KeyError:CODE
42 more matches not shown…
Unused Imports509 hits · 419 pts
SeverityFileLineSnippetContext
LOWtests/test_iotdata/__init__.py2CODE
LOWtests/test_stepfunctions/parser/__init__.py2CODE
LOWtests/test_ec2/test_utils.py19CODE
LOWtests/test_efs/test_filesystem_policy.py4CODE
LOWtests/test_efs/test_mount_target.py10CODE
LOWtests/test_efs/test_mount_target.py10CODE
LOWtests/test_efs/test_filesystem_tagging.py1CODE
LOWtests/test_efs/test_file_system.py8CODE
LOWtests/test_efs/test_mount_target_security_groups.py4CODE
LOWtests/test_efs/test_mount_target_security_groups.py4CODE
LOWtests/test_efs/test_lifecycle_config.py4CODE
LOWtests/test_efs/test_access_points.py6CODE
LOWtests/test_efs/test_access_point_tagging.py3CODE
LOWmoto/server.py10CODE
LOWmoto/__init__.py1CODE
LOWmoto/backends.py9CODE
LOWmoto/backends.py11CODE
LOWmoto/backends.py12CODE
LOWmoto/backends.py13CODE
LOWmoto/backends.py14CODE
LOWmoto/backends.py15CODE
LOWmoto/backends.py16CODE
LOWmoto/backends.py17CODE
LOWmoto/backends.py18CODE
LOWmoto/backends.py19CODE
LOWmoto/backends.py20CODE
LOWmoto/backends.py21CODE
LOWmoto/backends.py22CODE
LOWmoto/backends.py23CODE
LOWmoto/backends.py24CODE
LOWmoto/backends.py25CODE
LOWmoto/backends.py26CODE
LOWmoto/backends.py27CODE
LOWmoto/backends.py28CODE
LOWmoto/backends.py29CODE
LOWmoto/backends.py30CODE
LOWmoto/backends.py31CODE
LOWmoto/backends.py32CODE
LOWmoto/backends.py33CODE
LOWmoto/backends.py34CODE
LOWmoto/backends.py35CODE
LOWmoto/backends.py36CODE
LOWmoto/backends.py37CODE
LOWmoto/backends.py38CODE
LOWmoto/backends.py39CODE
LOWmoto/backends.py40CODE
LOWmoto/backends.py41CODE
LOWmoto/backends.py42CODE
LOWmoto/backends.py43CODE
LOWmoto/backends.py44CODE
LOWmoto/backends.py45CODE
LOWmoto/backends.py46CODE
LOWmoto/backends.py47CODE
LOWmoto/backends.py48CODE
LOWmoto/backends.py48CODE
LOWmoto/backends.py49CODE
LOWmoto/backends.py50CODE
LOWmoto/backends.py51CODE
LOWmoto/backends.py52CODE
LOWmoto/backends.py53CODE
449 more matches not shown…
Deep Nesting422 hits · 328 pts
SeverityFileLineSnippetContext
LOWsetup.py18CODE
LOWtests/test_awslambda/utilities.py181CODE
LOWtests/test_databrew/test_databrew_datasets.py16CODE
LOWtests/test_stepfunctions/parser/__init__.py53CODE
LOWtests/test_stepfunctions/parser/test_stepfunctions.py187CODE
LOWtests/test_batch/test_utils.py62CODE
LOWtests/test_eks/test_eks.py815CODE
LOWtests/test_events/test_events.py66CODE
LOW…/test_cloudformation/test_cloudformation_stack_crud.py2389CODE
LOWtests/test_core/test_protocols.py35CODE
LOWtests/test_s3/test_s3_lifecycle.py516CODE
LOWtests/test_rds/test_rds_proxy_target_groups.py99CODE
LOWtests/test_ec2/test_security_groups.py1359CODE
LOWtests/test_ec2/__init__.py253CODE
LOWmoto/codebuild/models.py208CODE
LOWmoto/kinesis/utils.py29CODE
LOWmoto/organizations/models.py246CODE
LOWmoto/organizations/models.py747CODE
LOWmoto/organizations/models.py801CODE
LOWmoto/organizations/models.py1019CODE
LOWmoto/ssm/models.py991CODE
LOWmoto/ssm/models.py476CODE
LOWmoto/ssm/models.py601CODE
LOWmoto/ssm/models.py1671CODE
LOWmoto/ssm/models.py1712CODE
LOWmoto/ssm/models.py1883CODE
LOWmoto/ssm/models.py1982CODE
LOWmoto/ssm/models.py2065CODE
LOWmoto/ssm/models.py2101CODE
LOWmoto/ssm/models.py2359CODE
LOWmoto/servicecatalog/models.py173CODE
LOWmoto/servicecatalog/models.py303CODE
LOWmoto/lakeformation/models.py349CODE
LOWmoto/lakeformation/models.py370CODE
LOWmoto/secretsmanager/models.py503CODE
LOWmoto/secretsmanager/models.py1131CODE
LOWmoto/kms/models.py252CODE
LOWmoto/kms/utils.py297CODE
LOWmoto/kms/utils.py191CODE
LOWmoto/cloudwatch/responses.py127CODE
LOWmoto/cloudwatch/models.py653CODE
LOWmoto/glue/models.py568CODE
LOWmoto/glue/models.py902CODE
LOWmoto/glue/models.py975CODE
LOWmoto/glue/models.py1194CODE
LOWmoto/glue/models.py1206CODE
LOWmoto/glue/models.py2086CODE
LOWmoto/s3/responses.py429CODE
LOWmoto/s3/responses.py581CODE
LOWmoto/s3/responses.py626CODE
LOWmoto/s3/responses.py978CODE
LOWmoto/s3/responses.py1226CODE
LOWmoto/s3/responses.py1572CODE
LOWmoto/s3/responses.py1903CODE
LOWmoto/s3/responses.py1998CODE
LOWmoto/s3/responses.py2626CODE
LOWmoto/s3/responses.py2868CODE
LOWmoto/s3/responses.py2980CODE
LOWmoto/s3/models.py702CODE
LOWmoto/s3/models.py657CODE
362 more matches not shown…
Excessive Try-Catch Wrapping140 hits · 154 pts
SeverityFileLineSnippetContext
LOWtests/test_awslambda/test_lambda.py1751 except Exception:CODE
LOWtests/test_stepfunctions/parser/__init__.py82 except Exception:CODE
LOWtests/test_stepfunctions/parser/__init__.py98 except Exception as e:CODE
LOWtests/test_secretsmanager/test_secretsmanager.py1217 except Exception as e:CODE
LOWtests/test_glacier/test_glacier_jobs.py122 except Exception:CODE
LOWtests/test_core/test_importorder.py137 except Exception as e:CODE
LOWtests/test_dynamodb/test_dynamodb_batch_write.py77 except Exception as e:CODE
MEDIUMtests/test_ec2/test_instances.py265def attach_and_detach_volumes() -> None:CODE
MEDIUMtests/test_ec2/test_instances.py284def describe_instance() -> None:CODE
LOWtests/test_ec2/test_instances.py280 except Exception as e:CODE
LOWtests/test_ec2/test_instances.py288 except Exception as e:CODE
LOWmoto/server.py66 except Exception:CODE
LOWmoto/proxy.py82 except Exception:CODE
LOW⚡moto/settings.py176 except Exception as e: # noqaCODE
MEDIUMmoto/settings.py161def get_docker_host() -> str:CODE
LOWmoto/secretsmanager/models.py938 except Exception:CODE
LOWmoto/kms/utils.py418 except Exception:CODE
LOWmoto/kms/utils.py439 except Exception:CODE
LOWmoto/core/responses.py594 except Exception: # Will just ignore if it cant workCODE
LOWmoto/sns/models.py1201 except Exception as e:STRING
LOWmoto/config/models.py692 except Exception:CODE
LOWmoto/ecr/policy_validation.py41 except Exception:CODE
LOWmoto/ecr/policy_validation.py53 except Exception:CODE
MEDIUMmoto/ecr/policy_validation.py38def validate(self) -> None:CODE
LOWmoto/dynamodb/models/table_export.py58 except Exception as e:CODE
MEDIUMmoto/dynamodb/models/table_export.py43def run(self) -> None:CODE
LOW⚡moto/dynamodb/models/__init__.py708 except Exception as e: # noqa: E722 Do not use bare exceptCODE
LOWmoto/dynamodb/models/__init__.py963 except Exception as e:CODE
LOWmoto/dynamodb/models/table_import.py70 except Exception as e:CODE
LOWmoto/dynamodb/models/table_import.py119 except Exception as e:CODE
LOWmoto/cloudtrail/models.py142 except Exception:CODE
LOWmoto/cloudtrail/models.py154 except Exception:CODE
LOWmoto/awslambda/models.py290 except Exception:CODE
LOWmoto/awslambda/models.py978 except Exception:CODE
LOWmoto/awslambda/resources/cfnresponse.py.txt46 except Exception as e:CODE
LOWmoto/iam/models.py2743 except Exception:CODE
MEDIUMmoto/iam/policy_validation.py100def validate(self) -> None:CODE
LOW⚡moto/iam/policy_validation.py103 except Exception:CODE
LOW⚡moto/iam/policy_validation.py107 except Exception:CODE
LOW⚡moto/iam/policy_validation.py115 except Exception:CODE
LOW⚡moto/iam/policy_validation.py119 except Exception:CODE
LOW⚡moto/iam/policy_validation.py125 except Exception:CODE
LOW⚡moto/iam/policy_validation.py576 except Exception:CODE
LOW⚡moto/iam/policy_validation.py583 except Exception:CODE
LOWmoto/iam/policy_validation.py555 except Exception:CODE
LOWmoto/logs/models.py282 except Exception:CODE
LOWmoto/logs/models.py1394 except Exception:CODE
LOWmoto/logs/models.py1418 except Exception:CODE
LOWmoto/batch/models.py1053 except Exception as err:CODE
LOWmoto/batch/models.py1060 except Exception as err:CODE
LOWmoto/batch/models.py1705 except Exception:CODE
LOWmoto/batch/models.py1784 except Exception:CODE
LOWmoto/mq/models.py51 except Exception:CODE
MEDIUMmoto/mq/models.py43def has_ldap_auth(self) -> bool:CODE
LOWmoto/firehose/models.py444 except Exception as exc:CODE
LOWmoto/firehose/models.py489 except Exception as exc:CODE
LOWmoto/ses/models.py999 except Exception:CODE
LOWmoto/ses/models.py1021 except Exception:CODE
LOWmoto/ses/models.py1035 except Exception:CODE
LOWmoto/events/models.py1089 except Exception:CODE
80 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtests/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_sns/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_iotdata/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_cloudwatch/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_stepfunctions/parser/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_secretsmanager/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_iam/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_ec2/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_elbv2/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_awslambda/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGH…ctions/parser/test_stepfunctions_lambda_integration.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGH…ions/parser/test_stepfunctions_dynamodb_integration.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_s3vectors/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_sqs/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_cognitoidp/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_s3/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_dynamodb/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_ds/test_ds_simple_ad_directory.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_ad_connect.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_microsoft_ad.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_ad_connect.py0test good and bad invocations of describe_directories().STRING
HIGHtests/test_ds/test_ds.py0test good and bad invocations of describe_directories().STRING
HIGHtests/test_ds/test_ds_microsoft_ad.py0test good and bad invocations of describe_directories().STRING
HIGHmoto/s3/models.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/core/base_backend.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/route53resolver/models.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/elb/models.py0not exposed as part of the elb api - used for cloudformation.STRING
HIGHmoto/elbv2/models.py0not exposed as part of the elb api - used for cloudformation.STRING
HIGHmoto/ec2/models/security_groups.py0not exposed as part of the elb api - used for cloudformation.STRING
Cross-Language Confusion26 hits · 142 pts
SeverityFileLineSnippetContext
HIGHupdate_version_from_git.py21 git symbolic-ref -q --short HEAD || git describe --tags --exact-matchSTRING
HIGHtests/test_awslambda/test_lambda.py373 "[x86_64, arm64], Member must not be null]"CODE
HIGHtests/test_wafv2/test_wafv2_rules.py319 == "Critical information is missing in your request: GetRuleGroupRequest(name=test-group, scope=null, id=null, aCODE
HIGHtests/test_config/test_config_rules.py134 bad_json_string = "{'name': 'test', 'type': null, }"CODE
HIGHtests/test_batch/test_batch_jobs.py377 commands = ["sh", "-c", "echo start && sleep 30 && echo stop"]CODE
HIGHtests/test_glue/test_schema_registry.py643 == f"Compatibility DISABLED does not allow versioning. SchemaId: SchemaId(schemaArn=null, schemaName={TEST_SCHEMCODE
HIGHtests/test_s3/test_s3_select.py91 assert {"Records": {"Payload": b'{"a1":"b1","a2":"b2","a3":null},'}} in resultCODE
HIGHtests/test_route53/test_route53.py1218 == "Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInCODE
HIGHtests/test_swf/test_exceptions.py158 r"failed to satisfy constraint: Member must not be null;",CODE
HIGHmoto/settings.py56 returned. Default value is SUCCESS, currently supports (SUCCESS || FAILURE)STRING
HIGHmoto/settings.py88 # True by default - only the value 'false' will return falseCOMMENT
HIGHmoto/settings.py93 # True by default - only the value 'false' will return falseCOMMENT
HIGHmoto/codebuild/models.py79 "deepLink": "https://console.aws.amazon.com/cloudwatch/home?region=eu-west-2#logEvent:group=null;stream=nullCODE
HIGHmoto/glue/utils.py504 (ident + is_ + null).set_parse_action(_IsNull)CODE
HIGHmoto/glue/utils.py505 | (ident + is_ + not_ + null).set_parse_action(_IsNotNull)CODE
HIGHmoto/glue/exceptions.py87 f"Schema is not found. RegistryName: {registry_name if registry_name else null}, SchemaName: {schema_name ifCODE
HIGHmoto/glue/exceptions.py103 f"Schema version is not found. RegistryName: {registry_name if registry_name else null}, SchemaName: {schemaCODE
HIGHmoto/glue/exceptions.py306 f"Compatibility DISABLED does not allow versioning. SchemaId: SchemaId(schemaArn={schema_arn if schema_arn eCODE
HIGHmoto/transfer/types.py13 responses rather than returning them as null, so the serialized model mustSTRING
HIGH⚡moto/ecr/models.py1594 # If imageTagMutabilityExclusionFilters isn't null, then imageTagMutability can only be the _EXCLUSION variantCOMMENT
HIGH⚡moto/ecr/models.py1604 # If it is null, then imageTagMutability cannot be the _EXCLUSION variantCOMMENT
HIGHmoto/awslambda/models.py727 "[Member must satisfy enum value set: [x86_64, arm64], Member must not be null]",CODE
HIGHmoto/firehose/models.py76 # If the destination config value is non-null, save it.COMMENT
HIGHmoto/stepfunctions/parser/asl/jsonata/validations.py47 cause=f"The JSONata expression '{expression}' returned nothing (undefined).",CODE
HIGH…tate/exec/state_task/service/state_task_service_sns.py70 f"Proxy: null)"CODE
HIGHmoto/acm/models.py615 if arn and self._certificates[arn].tags.equals(tags):CODE
Modern Structural Boilerplate99 hits · 96 pts
SeverityFileLineSnippetContext
LOWtests/test_core/test_docker.py7logger = logging.getLogger(__name__)CODE
LOWtests/test_rds/test_rds_blue_green_deployment.py786def update_status_from_create_blue_green_response(bg_response: dict) -> None:CODE
LOWmoto/kinesis/models.py331 def update_shard_count(self, target_shard_count: int) -> None:CODE
LOWmoto/kinesis/models.py1024 def update_stream_mode(self, stream_arn: str, stream_mode: dict[str, str]) -> None:CODE
LOWmoto/secretsmanager/models.py181 def set_default_version_id(self, version_id: str | None) -> None:CODE
LOWmoto/kms/models.py446 def update_key_description(self, key_id: str, description: str) -> None:CODE
LOWmoto/cloudwatch/models.py185 def update_state(self, reason: str, reason_data: str, state_value: str) -> None:CODE
LOW⚡moto/glue/models.py2407 def update_next_schema_version(self) -> None:CODE
LOW⚡moto/glue/models.py2410 def update_latest_schema_version(self) -> None:CODE
LOWmoto/glue/models.py1937 def update_partition(self, old_values: str, partiton_input: dict[str, Any]) -> None:CODE
LOW⚡moto/s3/models.py257 def set_storage_class(self, storage: str | None) -> None:CODE
LOW⚡moto/s3/models.py262 def set_expiry(self, expiry: datetime.datetime | None) -> None:CODE
LOW⚡moto/s3/models.py265 def set_acl(self, acl: FakeAcl | None) -> None:CODE
LOWmoto/s3/models.py244 def set_metadata(self, metadata: Any, replace: bool = False) -> None:CODE
LOWmoto/s3/models.py1161 def set_lifecycle(self, rules: list[dict[str, Any]]) -> None:CODE
LOWmoto/s3/models.py1313 def set_cors(self, rules: list[dict[str, Any]]) -> None:CODE
LOWmoto/s3/models.py1468 def set_accelerate_configuration(self, accelerate_config: str) -> None:CODE
LOWmoto/s3/models.py1500 def set_acl(self, acl: FakeAcl | None) -> None:CODE
LOW⚡moto/emr/models.py708 def set_termination_protection(self, value: bool) -> None:CODE
LOW⚡moto/emr/models.py711 def set_visibility(self, visibility: bool) -> None:CODE
LOWmoto/emr/models.py167 def set_instance_count(self, instance_count: int) -> None:CODE
LOWmoto/emr/models.py1071 def set_termination_protection(self, job_flow_ids: list[str], value: bool) -> None:CODE
LOWmoto/networkmanager/models.py207 def update_resource_state(self, resource_arn: str, state: str) -> None:CODE
LOWmoto/core/utils.py510def set_value(obj: Any, key: str, value: Any) -> None:CODE
LOWmoto/core/utils.py523def _set_value_for_key(obj: Any, key: str, value: Any) -> None:CODE
LOWmoto/sns/models.py547 def set_sms_attributes(self, attrs: dict[str, str]) -> None:STRING
LOWmoto/sns/models.py899 def set_subscription_attributes(self, arn: str, name: str, value: Any) -> None:STRING
LOWmoto/datasync/models.py174 def update_task(self, task_arn: str, name: str, metadata: dict[str, Any]) -> None:CODE
LOWmoto/ds/models.py204 def update_alias(self, alias: str) -> None:CODE
LOWmoto/osis/models.py170 def set_last_updated(self) -> None:CODE
LOWmoto/memorydb/models.py359 def set_authentication(self, authentication_mode: dict[str, Any]) -> None:CODE
LOWmoto/s3control/models.py84 def set_policy(self, policy: str) -> None:CODE
LOWmoto/s3control/models.py111 def set_policy(self, policy: str) -> None:CODE
LOWmoto/synthetics/__init__.py7__all__ = ["synthetics_backends"]CODE
LOWmoto/cognitoidp/responses.py88 def update_user_pool(self) -> None:CODE
LOWmoto/cognitoidp/models.py470 def update_extended_config(self, extended_config: dict[str, Any]) -> None:CODE
LOWmoto/cognitoidp/models.py916 def update_attributes(self, new_attributes: list[dict[str, Any]]) -> None:CODE
LOWmoto/moto_api/_internal/state_manager.py20 def set_transition(self, model_name: str, transition: dict[str, Any]) -> None:CODE
LOWmoto/moto_api/_internal/models.py28 def set_transition(self, model_name: str, transition: dict[str, Any]) -> None:CODE
LOWmoto/moto_api/_internal/models.py51 def set_ce_cost_usage(self, result: dict[str, Any], account_id: str) -> None:CODE
LOWmoto/moto_api/_internal/models.py182 def set_config(self, config: dict[str, Any]) -> None:CODE
LOWmoto/ecr/models.py441 def update_tag(self, tag: str) -> None:CODE
LOWmoto/dynamodb/models/__init__.py578 def update_time_to_live(self, table_name: str, ttl_spec: dict[str, Any]) -> None:CODE
LOWmoto/dynamodb/models/dynamo_type.py420 def update_with_attribute_updates(self, attribute_updates: dict[str, Any]) -> None:CODE
LOWmoto/dynamodb/models/table.py461 def set_stream_specification(self, streams: dict[str, Any] | None) -> None:CODE
LOWmoto/dynamodb/parsing/expressions.py35logger = logging.getLogger(__name__)CODE
LOWmoto/route53resolver/models.py299 def update_name(self, name: str) -> None:CODE
LOWmoto/sqs/models.py128 def update_binary_length_and_value(md5: Any, value: bytes) -> None: # type: ignore[misc]CODE
LOWmoto/sqs/models.py369 def _setup_dlq(self, policy: Any) -> None:CODE
LOWmoto/appmesh/dataclasses/shared.py21 def update_timestamp(self) -> None:CODE
LOWmoto/iot/models.py1981 def update_certificate(self, certificate_id: str, new_status: str) -> None:CODE
LOWmoto/iot/models.py2077 def set_default_policy_version(self, policy_name: str, version_id: str) -> None:CODE
LOWmoto/awslambda/models.py78logger = logging.getLogger(__name__)CODE
LOWmoto/awslambda/models.py705 def set_version(self, version: int) -> None:CODE
LOWmoto/awslambda/models.py875 def _set_function_code(self, updated_spec: dict[str, Any]) -> None:CODE
LOWmoto/iam/models.py185 def update_default_version(self, new_default_version_id: str) -> None:CODE
LOWmoto/iam/models.py1476 def update_ssh_public_key(self, ssh_public_key_id: str, status: str) -> None:CODE
LOWmoto/iam/models.py2220 def update_assume_role_policy(self, role_name: str, policy_document: str) -> None:CODE
LOWmoto/logs/models.py628 def set_retention_policy(self, retention_in_days: str | None) -> None:CODE
LOWmoto/amp/models.py111 def update_workspace_alias(self, alias: str, workspace_id: str) -> None:CODE
39 more matches not shown…
Redundant / Tautological Comments51 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/test_textract/test_textract.py126 # Check if notification was sent to SQSCOMMENT
LOW⚡tests/test_secretsmanager/test_secretsmanager.py1949 # Check if indeed the third version is returnedSTRING
LOW⚡tests/test_secretsmanager/test_secretsmanager.py1954 # Check if all the versions have the proper labelsSTRING
LOWtests/test_iot/test_iot.py170 # Verify if Principal is correct.COMMENT
LOWtests/test_iam/test_iam_signing_certificates.py115 # Set Certificate to InactiveCOMMENT
LOWtests/test_route53resolver/test_route53resolver_rule.py408 # Set max_results to return 1 rule, use next_token to get remaining 3.COMMENT
LOW…te53resolver/test_route53resolver_rule_associations.py274 # Set max_results to return 1 association, use next_token to getCOMMENT
LOW…/test_route53resolver/test_route53resolver_endpoint.py597 # Set max_results to return 1 address, use next_token to get remaining.COMMENT
LOW…/test_route53resolver/test_route53resolver_endpoint.py673 # Set max_results to return 1 endpoint, use next_token to get remaining 3.COMMENT
LOWtests/test_s3/test_s3_lambda_integration.py312 # Set S3 to send ObjectCreated to SNSCOMMENT
LOWtests/test_s3/test_s3_lambda_integration.py437 # Set S3 to send ObjectCreated to SNSCOMMENT
LOWtests/test_ec2/test_instances.py1291 # Set back to trueCOMMENT
LOWmoto/secretsmanager/models.py659 # Check if the secret_string/secret_binary values corresponding to this version matches that of the current requCOMMENT
LOWmoto/s3/responses.py2288 # Check if the ETags are the same. S3 doesn't seem to care about quotes, so we shouldn't eitherCOMMENT
LOWmoto/s3/responses.py3087 # Check if the ETags are the same. S3 doesn't seem to care about quotes, so we shouldn't eitherCOMMENT
LOWmoto/networkmanager/models.py257 # Check if core network existsCOMMENT
LOWmoto/core/models.py158 # Check if this is a classmethod. If so, skip patchingCOMMENT
LOWmoto/core/models.py162 # Check if this is a staticmethod. If so, skip patchingCOMMENT
LOWmoto/core/models.py287 # Check if our event handler was already registeredCOMMENT
LOW⚡moto/config/models.py1435 # Check if a channel is recording -- if so, bad -- (there can only be 1 recorder):COMMENT
LOWmoto/kinesisanalyticsv2/models.py227 # Check if the current key is in key_map, else keep old_keyCOMMENT
LOWmoto/dynamodb/parsing/key_condition_expression.py285 # Check if any later range keys ARE in the query (would be skipping)COMMENT
LOWmoto/workspaces/models.py568 # Check if workspace exists.COMMENT
LOWmoto/workspaces/models.py573 # Check if image name already exists.COMMENT
LOWmoto/appsync/models.py670 # Check if API existsCOMMENT
LOWmoto/managedblockchain/models.py439 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py445 # Check if member existsCOMMENT
LOWmoto/managedblockchain/models.py491 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py508 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py526 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py555 # Check if IN_PROGRESSCOMMENT
LOWmoto/managedblockchain/models.py594 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py626 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py681 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py694 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py714 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py746 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py767 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py861 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py880 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py903 # Check if network existsCOMMENT
LOWmoto/servicediscovery/models.py595 # Add instance to the list if it passed all filtersCOMMENT
LOWmoto/acmpca/models.py463 # Check if the certificate is revokedCOMMENT
LOW⚡moto/acmpca/models.py487 # Check if CA is activeCOMMENT
LOWmoto/ses/models.py909 # Check if original_rule_set_name existsCOMMENT
LOWmoto/ses/models.py915 # Check if rule_set_name already existsCOMMENT
LOWmoto/moto_proxy/certificate_creator.py72 # Verify if the certificate already existsCOMMENT
LOWmoto/cloudformation/parsing.py456 # Check if we are referencing another ConditionCOMMENT
LOWmoto/cloudformation/parsing.py689 # Check if there are any non-default params that were not passed inputCOMMENT
LOWmoto/ec2/models/instances.py144 # Check if we have tags to processCOMMENT
LOWmoto/ec2/models/vpcs.py700 # Check if current cidr block doesn't fall within the 10.0.0.0/8 block, excluding 10.0.0.0/16 and 10.1.0.0/16.COMMENT
AI Structural Patterns84 hits · 70 pts
SeverityFileLineSnippetContext
LOWtests/test_cloudwatch/test_cloudwatch.py1049CODE
LOWtests/test_cognitoidp/__init__.py12CODE
LOWtests/test_sagemaker/test_sagemaker_training.py16CODE
LOWtests/test_sagemaker/test_sagemaker_processing.py24CODE
LOWtests/test_sagemaker/test_sagemaker_transform.py16CODE
LOWtests/test_apigateway/test_apigateway_validators.py149CODE
LOWtests/test_dynamodb/__init__.py10CODE
LOWtests/test_ec2/__init__.py26CODE
LOWmoto/codebuild/models.py95CODE
LOWmoto/ssm/models.py766CODE
LOWmoto/timestreaminfluxdb/models.py107CODE
LOWmoto/timestreaminfluxdb/models.py485CODE
LOWmoto/secretsmanager/models.py79CODE
LOWmoto/secretsmanager/models.py683CODE
LOWmoto/secretsmanager/models.py749CODE
LOWmoto/cloudwatch/models.py534CODE
LOWmoto/glue/models.py69CODE
LOWmoto/glue/models.py157CODE
LOWmoto/glue/models.py1349CODE
LOWmoto/glue/models.py1411CODE
LOWmoto/glue/models.py1629CODE
LOWmoto/glue/models.py2286CODE
LOWmoto/s3/models.py121CODE
LOWmoto/s3/models.py828CODE
LOWmoto/s3/models.py2289CODE
LOWmoto/s3/models.py3046CODE
LOWmoto/emr/models.py374CODE
LOWmoto/fis/models.py493CODE
LOWmoto/dynamodb/models/table.py253CODE
LOWmoto/route53domains/validators.py701CODE
LOWmoto/route53domains/validators.py735CODE
LOWmoto/route53domains/validators.py958CODE
LOWmoto/applicationautoscaling/responses.py249CODE
LOWmoto/ecs/models.py132CODE
LOWmoto/ecs/models.py473CODE
LOWmoto/ecs/models.py848CODE
LOWmoto/ecs/models.py1112CODE
LOWmoto/ecs/models.py1598CODE
LOWmoto/ecs/models.py2154CODE
LOWmoto/pipes/models.py48CODE
LOWmoto/eks/models.py193CODE
LOWmoto/eks/models.py389CODE
LOWmoto/apigatewayv2/models.py770CODE
LOWmoto/kafka/models.py18CODE
LOWmoto/kafka/models.py227CODE
LOWmoto/codedeploy/models.py260CODE
LOWmoto/codedeploy/models.py329CODE
LOWmoto/dms/models.py118CODE
LOWmoto/dms/models.py545CODE
LOWmoto/dms/models.py822CODE
LOWmoto/events/models.py1245CODE
LOWmoto/autoscaling/models.py426CODE
LOWmoto/elbv2/models.py97CODE
LOWmoto/elbv2/models.py1801CODE
LOWmoto/cloudformation/parsing.py496CODE
LOWmoto/rds/models.py509CODE
LOWmoto/rds/models.py1098CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py53CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py65CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py90CODE
24 more matches not shown…
TODO Padding33 hits · 56 pts
SeverityFileLineSnippetContext
LOWtests/test_s3/test_s3_lifecycle.py306 # TODO: Add test for failures due to missing childrenCOMMENT
LOWtests/test_s3/test_s3_lifecycle.py481 # TODO: Add test for failures due to missing childrenCOMMENT
LOWtests/test_apigateway/test_apigateway.py868 # TODO: implement mult-update testsCOMMENT
LOWtests/test_ec2/test_subnets.py286 # TODO: implement some actual logicCOMMENT
LOWmoto/ds/models.py716 # TODO: Add validation for the valueCOMMENT
LOWmoto/transfer/responses.py117 # TODO: implement paginationCOMMENT
LOWmoto/transfer/responses.py164 # TODO: implement paginationCOMMENT
LOWmoto/transfer/models.py253 # TODO: implement paginationCOMMENT
LOWmoto/transfer/models.py329 # TODO: implement paginationCOMMENT
LOWmoto/dynamodb/models/dynamo_type.py467 # TODO: implement other data typesCOMMENT
LOWmoto/iot/responses.py568 # TODO: implement pagination in the futureCOMMENT
LOWmoto/iot/responses.py648 # TODO: implement pagination in the futureCOMMENT
LOWmoto/iot/models.py2593 # TODO: implement expected_version and status_details (at most 10 can be specified)COMMENT
LOWmoto/codedeploy/models.py399 # TODO: implement paginationCOMMENT
LOWmoto/codedeploy/models.py403 # TODO: implement pagination and complete filteringCOMMENT
LOWmoto/codedeploy/models.py459 # TODO: implement paginationCOMMENT
LOWmoto/swf/responses.py106 # TODO: implement paginationCOMMENT
LOWmoto/swf/responses.py264 # TODO: implement paginationCOMMENT
LOW⚡moto/swf/responses.py525 # TODO: implement length limits on reason and details (common pb withCOMMENT
LOWmoto/swf/models/workflow_execution.py61 # TODO: implement them allCOMMENT
LOW⚡moto/swf/models/workflow_execution.py454 # TODO: implement Decision type: ContinueAsNewWorkflowExecutionCOMMENT
LOW⚡moto/swf/models/workflow_execution.py455 # TODO: implement Decision type: RequestCancelActivityTaskCOMMENT
LOW⚡moto/swf/models/workflow_execution.py456 # TODO: implement Decision type: RequestCancelExternalWorkflowExecutionCOMMENT
LOW⚡moto/swf/models/workflow_execution.py457 # TODO: implement Decision type: ScheduleLambdaFunctionCOMMENT
LOW⚡moto/swf/models/workflow_execution.py458 # TODO: implement Decision type: SignalExternalWorkflowExecutionCOMMENT
LOW⚡moto/swf/models/workflow_execution.py459 # TODO: implement Decision type: StartChildWorkflowExecutionCOMMENT
LOWmoto/swf/models/workflow_execution.py478 # TODO: implement length constraints on details/reasonCOMMENT
LOWmoto/swf/models/workflow_execution.py490 # TODO: implement length constraints on detailsCOMMENT
LOWmoto/swf/models/workflow_execution.py513 # TODO: implement other possible failure mode: OPEN_ACTIVITIES_LIMIT_EXCEEDEDCOMMENT
LOWmoto/stepfunctions/parser/asl/parse/preprocessor.py1159 # TODO: add tests for arguments in jsonata blocks using result writerCOMMENT
LOW…exec/state_task/service/state_task_service_callback.py47# TODO: consider implementing a polling pattern similar to that observable from AWS:COMMENT
LOW⚡moto/route53/responses.py126 # TODO: implement enable/disable dnssec apisCOMMENT
LOWmoto/ec2/models/elastic_ip_addresses.py133 # TODO: implement network-interface-owner-idCOMMENT
AI Slop Vocabulary28 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_awslambda/test_lambda_invoke.py344 # Absolutely fine when invoking asyncCOMMENT
LOWtests/test_identitystore/test_identitystore.py1201 ] # strip response metadata and just return user infoCODE
LOWtests/test_ecr/test_ecr_cloudformation.py51 # Eventually we will just create the repository using the CloudFormation template above,COMMENT
LOW⚡tests/test_s3/test_s3.py3244 # Create it again in the same region - should just return that same bucketCOMMENT
LOWtests/test_s3/test_s3.py1674 # Uploading >1000 files using boto3 takes ages, so let's just use the backend directlyCOMMENT
MEDIUMtests/test_dynamodb/test_dynamodb_executor.py387 """A delete statement must use a value of type SS in order to delete elements from a set."""STRING
MEDIUMtests/test_dynamodb/test_dynamodb_executor.py411 """A delete statement must use a value of type SS in order to delete elements from a set."""STRING
LOW⚡moto/lakeformation/models.py457 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOW⚡moto/lakeformation/models.py463 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOW⚡moto/lakeformation/models.py469 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/lakeformation/models.py488 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/kms/models.py417 # In our implementation with just create a copy of all the properties once without any protection from change,COMMENT
LOWmoto/cloudwatch/models.py851 # Let's just add all metric data found within this periodCOMMENT
MEDIUMmoto/glue/utils.py477 # NOTE these are AWS Athena column name best practicesCOMMENT
LOWmoto/emr/models.py589 # For now, just return a hardcoded value for such cases.COMMENT
MEDIUMmoto/core/parse.py404 # Need to utilize subclasses here...COMMENT
LOWmoto/cognitoidp/models.py2548 # If we can't find the `client_id` or `access_token`, we just passCOMMENT
LOWmoto/dynamodb/models/dynamo_type.py167 # DynamoDB doesn't care you are out of box just add it to the end.COMMENT
LOWmoto/iot/models.py2194 # This behaviour is different to list_policy_principals which will just return an empty listCOMMENT
LOWmoto/awslambda/models.py238 # If we don't have any layers to apply, just return at this pointCOMMENT
LOWmoto/awslambda/models.py455 # So it seems like the date is automatically set to UTC on creation, that's why we can just return this hardcodeCOMMENT
LOWmoto/batch/models.py1571 # We'll just use the first instance_type in this familyCOMMENT
LOW⚡moto/elasticache/models.py933 # Docs user "ResourceName" as input but the param is technically the ARN, will just use arnCOMMENT
LOW⚡moto/elasticache/models.py937 # Docs user "ResourceName" as input but the param is technically the ARN, will just use arnCOMMENT
LOWmoto/rds/models.py3798 # So we can't just use the dict-keys - we have to manually check the ARNCOMMENT
MEDIUM…pfunctions/parser/asl/parse/test_state/preprocessor.py66 # to facilitate the decorator's functionality.COMMENT
MEDIUM…pfunctions/parser/asl/parse/test_state/preprocessor.py73 # to facilitate the decorator's functionality.COMMENT
LOWmoto/ec2/models/amis.py214 # Will error on unknown (new) regions - just return an empty list hereCOMMENT
Over-Commented Block57 hits · 48 pts
SeverityFileLineSnippetContext
LOWrequirements-dev.txt21COMMENT
LOWtests/test_secretsmanager/test_server.py281 assert json_data["Name"] == DEFAULT_SECRET_NAMECOMMENT
LOWtests/test_secretsmanager/test_server.py301# initial_description = test_client.post(COMMENT
LOWtests/test_secretsmanager/test_server.py321# },COMMENT
LOWtests/test_config/test_config_rules.py221COMMENT
LOW…t_cloudformation/test_cloudformation_multi_accounts.py21COMMENT
LOWtests/test_iam/test_iam_cloudformation.py1141 # The Stack has two resources, a Role and an InlinePolicy attached to this role.COMMENT
LOWtests/test_apigateway/test_server.py121 # Moto/Boto3 requires the responseTemplates-parameter to have a value - even if it's an empty dictCOMMENT
LOWtests/test_swf/models/test_workflow_execution.py541 wfe.start()COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py21 agentResourceRoleArn="test-agent-arn",COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py41 # 'promptType': 'PRE_PROCESSING',COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py421# agentResourceRoleArn="test-agent-arn",COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py441# client = boto3.client("bedrock-agent", region_name=DEFAULT_REGION)COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py521 )COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py541COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py561# knowledgeBaseConfiguration={COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py581# roleArn="test_role_arn",COMMENT
LOWmoto/config/models.py801COMMENT
LOWmoto/config/models.py861 "The required parameter ["COMMENT
LOWmoto/config/models.py881 # if rule_info["Trigger type"] == "Configuration changes":COMMENT
LOWmoto/cognitoidp/models.py1321 # or both) than can be used in the place of a unique username. If theCOMMENT
LOWmoto/cognitoidp/models.py1961 # 2. generates a persistent GUID for the user that will be returned asCOMMENT
LOWmoto/dynamodb/comparisons.py481 # = <> < <= > >=COMMENT
LOWmoto/dynamodb/comparisons.py501 # ( condition )COMMENT
LOWmoto/dynamodb/models/dynamo_type.py521 # Creates a reproducible hash number for this item (between 0 and 256)COMMENT
LOWmoto/utilities/distutils_version.py81# Interface for version-number classes -- must be implementedCOMMENT
LOWmoto/utilities/distutils_version.py101# left-to-right to determine an ordering.COMMENT
LOWmoto/utilities/distutils_version.py121# The problem is what to do with letters (and other non-numericCOMMENT
LOWmoto/utilities/distutils_version.py141# anarchists in the lot will never give in, though, and something needsCOMMENT
LOWmoto/moto_proxy/certs/__init__.py1# Folder that will contain SSL certificatesCOMMENT
LOWmoto/swf/models/__init__.py241 # - case 1: there's a decision task to return, return itCOMMENT
LOWmoto/swf/models/__init__.py361 domain = self._get_domain(domain_name)COMMENT
LOW…tions/parser/asl/component/state/exec/execute_state.py61 # The input is then filtered as specified by the OutputPath field (if present) before being used as theCOMMENT
LOW…tions/parser/asl/component/state/exec/execute_state.py81 # the state_task has been started, for example, when ActivityStarted or LambdaFunctionStarted are logged in theCOMMENT
LOW…unction/statesfunction/json_manipulation/json_merge.py21 #COMMENT
LOW…ntrinsic/function/statesfunction/array/array_unique.py21 # For example:COMMENT
LOW…ction/statesfunction/string_operations/string_split.py21 # For example:COMMENT
LOW…ic/function/statesfunction/math_operations/math_add.py21 # AWS stepfunctions is implemented in Java, so we need to adjust the rounding accordinglyCOMMENT
LOW…function/statesfunction/math_operations/math_random.py21 #COMMENT
LOW…ion/statesfunction/encoding_decoding/base_64_decode.py21 #COMMENT
LOW…ion/statesfunction/encoding_decoding/base_64_encode.py21 #COMMENT
LOW…insic/function/statesfunction/generic/string_format.py21COMMENT
LOWdocs/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs/conf.py21COMMENT
LOWdocs/conf.py61COMMENT
LOWdocs/conf.py81# default_role = NoneCOMMENT
LOWdocs/conf.py101# keep_warnings = FalseCOMMENT
LOWdocs/conf.py121# The name for this set of Sphinx documents. If None, it defaults toCOMMENT
LOWdocs/conf.py141COMMENT
LOWdocs/conf.py161COMMENT
LOWdocs/conf.py181# contain a <link> tag referring to it. The value of this option must be theCOMMENT
LOWdocs/conf.py201COMMENT
LOWdocs/conf.py221latex_documents = [COMMENT
LOWdocs/conf.py241COMMENT
LOWscripts/dependency_test.sh1#COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-analysis.yml41 uses: github/codeql-action/init@v4.38.2COMMENT
Fake / Example Data46 hits · 48 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_sesv2/test_sesv2.py269 EmailAddress="user@example.com",CODE
LOW⚡tests/test_sesv2/test_sesv2.py271 assert contact["EmailAddress"] == "user@example.com"CODE
LOWtests/test_sesv2/test_sesv2.py252 EmailAddress="user@example.com",CODE
LOW…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py1717 Email="user@example.com",STRING
LOW…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py1735 "DataSetPlaceholder": "placeholder",STRING
LOWtests/test_quicksight/test_quicksight_tagging.py63 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py91 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py188 Email="user@example.com",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py208 Email="user@example.com",CODE
LOWtests/test_quicksight/test_quicksight_users.py575 MemberName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py740 UserName="fake_user",CODE
LOW⚡tests/test_quicksight/test_quicksight_users.py751 MemberName="fake_user",CODE
LOW⚡tests/test_quicksight/test_quicksight_users.py759 UserName="fake_user",CODE
LOW⚡tests/test_quicksight/test_quicksight_users.py768 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py779 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_integration.py59 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_integration.py102 Email="user@example.com",CODE
LOWtests/test_identitystore/test_identitystore.py961 dummy_user = __create_and_verify_sparse_user(client, identity_store_id)CODE
LOWtests/test_identitystore/test_identitystore.py962 expected_users.append(dummy_user)CODE
LOWtests/test_networkmanager/test_networkmanager.py124 "Address": "123 Main St",CODE
LOWtests/test_networkmanager/test_networkmanager.py270 "Address": "123 Main St",CODE
LOWtests/test_sqs/test_sqs_message_attributes.py70 "Author": {"StringValue": "John Doe", "DataType": "String"},CODE
LOWtests/test_sqs/test_sqs_message_attributes.py91 assert message["MessageAttributes"]["Author"]["StringValue"] == "John Doe"CODE
LOWtests/test_cognitoidp/test_cognitoidp.py3796 {"Name": "email", "Value": "test@test.com"},CODE
LOWtests/test_cognitoidp/test_cognitoidp.py4489 UserAttributes=[{"Name": "email", "Value": "test@test.com"}],CODE
LOWtests/test_cognitoidp/test_cognitoidp.py4509 UserAttributes=[{"Name": "email", "Value": "test@test.com"}],CODE
LOW⚡tests/test_sagemaker/test_sagemaker_model_packages.py390 == "arn:aws:sagemaker:eu-west-1:123456789012:user-profile/fake-domain-id/fake-user-profile-name"CODE
LOW⚡tests/test_sagemaker/test_sagemaker_model_packages.py392 assert resp["LastModifiedBy"]["UserProfileName"] == "fake-user-profile-name"CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py247 == "arn:aws:sagemaker:eu-west-1:123456789012:user-profile/fake-domain-id/fake-user-profile-name"CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py249 assert resp["CreatedBy"]["UserProfileName"] == "fake-user-profile-name"CODE
LOW⚡tests/test_s3/test_s3_multipart.py64 fake_key = s3model.FakeKey(CODE
LOW⚡tests/test_s3/test_s3_multipart.py67 assert fake_key._value_buffer._rolled is FalseCODE
LOW⚡tests/test_s3/test_s3_multipart.py71 fake_key = s3model.FakeKey(CODE
LOW⚡tests/test_s3/test_s3_multipart.py74 assert fake_key._value_buffer._rolled is TrueCODE
LOW⚡tests/test_ses/test_ses.py1946 conn.verify_email_identity(EmailAddress="foo@bar.com")CODE
LOW⚡tests/test_ses/test_ses.py1950 Identities=["foo.com", "foo@bar.com", "bar@bar.com"]CODE
LOW⚡tests/test_ses/test_ses.py1959 attributes["VerificationAttributes"]["foo@bar.com"]["VerificationStatus"]CODE
LOWtests/test_dynamodb/test_dynamodb.py3861 "nonProjectedAttribute": "dolor sit amet",CODE
LOWtests/test_account/test_account_alternate_contacts.py17 EmailAddress="test@test.com",CODE
LOWtests/test_account/test_account_alternate_contacts.py40 assert details["EmailAddress"] == "test@test.com"CODE
LOWtests/test_account/test_account_alternate_contacts.py84 EmailAddress="test@test.com",CODE
LOW…ests_java/src/test/java/moto/tests/CognitoIDPTest.java47 .value("test@test.com")CODE
LOWmoto/sagemaker/models.py222 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py271 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py1064 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py1246 fake_user_profile_name = "fake-user-profile-name"CODE
Decorative Section Separators12 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_efs/test_mount_target.py271 # ------------------COMMENT
MEDIUMtests/test_efs/test_mount_target.py286 # --------------------COMMENT
MEDIUMtests/test_efs/test_mount_target.py305 # ----------------COMMENT
MEDIUM⚡tests/test_efs/test_file_system.py164# ================COMMENT
MEDIUM⚡tests/test_efs/test_file_system.py351# ==============COMMENT
MEDIUMtests/test_efs/test_file_system.py34# ==============COMMENT
MEDIUMtests/test_efs/test_file_system.py271 # ------------------COMMENT
MEDIUMtests/test_efs/test_file_system.py286 # --------------------COMMENT
MEDIUMtests/test_efs/test_file_system.py303 # ----------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py239 # ---------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py250 # -------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py255 # --------------COMMENT
Dead Code10 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_core/test_proxy.py116CODE
MEDIUMtests/test_core/test_proxy.py119CODE
MEDIUMtests/test_core/test_proxy.py120CODE
MEDIUMtests/test_core/test_proxy.py121CODE
MEDIUMtests/test_core/test_proxy.py124CODE
MEDIUMtests/test_core/test_proxy.py127CODE
MEDIUMtests/test_core/test_proxy.py128CODE
MEDIUMtests/test_core/test_proxy.py130CODE
MEDIUMtests/test_core/test_proxy.py131CODE
MEDIUMtests/test_core/test_proxy.py132CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtests/test_ssm/test_ssm.py2367 # verbatim -- as requested -- not as the stripped name.COMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_s3/test_s3_conditionals.py331 # Step 1: Create object via multipart uploadCOMMENT
LOWmoto/config/models.py875 # WARNING: The AWS documentation indicates MaximumExecutionFrequencyCOMMENT
LOW⚡moto/dynamodb/comparisons.py477 # NOTE: The following constructions are ordered from high precedence to low precedenceCOMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_s3/test_s3_conditionals.py331 # Step 1: Create object via multipart uploadCOMMENT
LOWmoto/secretsmanager/models.py652 # we need to check if it matches the existing secret's version ID.COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWmoto/ecs/responses.py203 def run_task(self) -> ActionResult:CODE
LOWmoto/ecs/models.py1240 def run_task(CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmoto/ec2/models/instances.py463 # TODO: Don't forget to implement replace_iam_instance_profile_association once update_from_cloudformation_jsonCOMMENT