AI Slop Code RIsk Monitor

saleor/saleor

Saleor Core: the high performance, composable, headless commerce API.

20.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for saleor/saleor, a Python project with 23,429 GitHub stars. SynthScan examined 836,931 lines of code across 3034 source files, recording 17825 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 20.1 (Elevated pattern signal); it is not an authorship estimate.

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

20.1
Adjusted Signal
20.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
23.4K
Stars
Python
Language
836.9K
Lines of Code
3.0K
Files
17.8K
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 49.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 23.6/100 · LOW

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

Agent Over-Engineering Ratio 47.0/100 · MEDIUM

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

PR Review Velocity Impact 72.1/100 · HIGH

Which changes need focused human review? 17825 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 313HIGH 122MEDIUM 52LOW 17338

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 17825 distinct pattern matches across 20 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 Identifiers14431 hits · 9727 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md279def test_apps_for_federation_query_count(CODE
LOWAGENTS.md392def my_model_qs_select_for_update() -> QuerySet[MyModel]:CODE
LOWCLAUDE.md392def my_model_qs_select_for_update() -> QuerySet[MyModel]:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py74def test_log_exception_with_finally_block():CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py84def test_log_exception_with_else_block():CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py94def test_log_exception_with_finally_else_block():CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py106def test_not_logging_exception():CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py115def test_not_logging_exception():CODE
LOW…p/security/logging/exception-object-in-logger-extra.py10def test_log_catch_multiple_exceptions():CODE
LOW…p/security/logging/exception-object-in-logger-extra.py29def test_log_middle_of_statement():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py9def migration_task_without_queue_set():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py16def migration_task_without_queue_set_and_more_decorators():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py22def migration_task_with_no_args():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py34def migration_task_with_args_and_kwargs(CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py42def migration_task_with_queue_set_to_raw_value():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py48def migration_task_with_args_kwargs_and_queue_set_to_raw_value(self):CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py54def migration_task_with_queue_set():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py61def migration_task_with_queue_set_and_more_decorators():CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py67def migration_task_with_kwargs_and_queue_set_first(self):CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py73def migration_task_with_kwargs_and_queue_set_last(self):CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py79def migration_task_with_kwargs_and_queue_set_in_the_middle(self):CODE
LOW⚡…elery/celery-migration-task-missing-dedicated-queue.py85def migration_task_with_multiline_kwargs_and_queue():CODE
LOW⚡…mgrep/correctness/celery/task-logger-without-suffix.py10def same_name_with_celery_first():CODE
LOW⚡…mgrep/correctness/celery/task-logger-without-suffix.py17def different_name_get_task_logger():CODE
LOW⚡…mgrep/correctness/celery/task-logger-without-suffix.py22def different_name_logging_getlogger():CODE
LOW…mgrep/correctness/celery/task-logger-without-suffix.py34def same_name_without_variables():CODE
LOW…orrectness/django/django-migration-wrong-app-config.py24def wrong_app_config_multiline(apps, _schema_editor):CODE
LOW…orrectness/django/django-migration-wrong-app-config.py35def correct_app_config_multiline(apps, _schema_editor):CODE
LOW⚡…orrectness/django/django-no-default-token-generator.py1def test_using_default_token_generator():CODE
LOW⚡…orrectness/django/django-no-default-token-generator.py6def test_using_token_generator_class():CODE
LOW⚡…orrectness/django/django-no-default-token-generator.py10def test_ok_not_using_django_builtin_default_token_generator():CODE
LOWsaleor/webhook/serializers.py20def serialize_variant_full_name(CODE
LOWsaleor/webhook/serializers.py73def serialize_product_attributes(product: "Product") -> list[dict]:CODE
LOWsaleor/webhook/serializers.py139def serialize_variant_attributes(variant: "ProductVariant") -> list[dict]:CODE
LOWsaleor/webhook/utils.py27def get_filter_for_single_webhook_event(CODE
LOWsaleor/webhook/utils.py94def get_webhooks_for_app_lifecycle_event(CODE
LOWsaleor/webhook/utils.py129def get_webhooks_for_multiple_events(CODE
LOWsaleor/webhook/utils.py162def calculate_webhooks_for_multiple_events(CODE
LOWsaleor/webhook/utils.py202def filter_webhooks_for_channel(CODE
LOWsaleor/webhook/payloads.py108def generate_metadata_updated_payload(CODE
LOWsaleor/webhook/payloads.py128def prepare_order_lines_allocations_payload(line):CODE
LOWsaleor/webhook/payloads.py143def generate_order_lines_payload(lines: Iterable[OrderLine]):CODE
LOWsaleor/webhook/payloads.py195def _generate_collection_point_payload(warehouse: "Warehouse"):CODE
LOWsaleor/webhook/payloads.py211def _generate_shipping_method_payload(shipping_method, channel):CODE
LOWsaleor/webhook/payloads.py333def _generate_order_payment_payload(payments: Iterable["Payment"]):CODE
LOWsaleor/webhook/payloads.py435def generate_sale_toggle_payload(CODE
LOWsaleor/webhook/payloads.py478def _generate_order_payload_for_invoice(order: "Order"):CODE
LOWsaleor/webhook/payloads.py499def generate_checkout_payload(CODE
LOWsaleor/webhook/payloads.py602def generate_customer_payload(CODE
LOWsaleor/webhook/payloads.py641def generate_collection_payload(CODE
LOWsaleor/webhook/payloads.py679def serialize_product_channel_listing_payload(channel_listings):CODE
LOWsaleor/webhook/payloads.py701def _get_charge_taxes_for_product(product: "Product") -> bool:CODE
LOWsaleor/webhook/payloads.py759def generate_product_deleted_payload(CODE
LOWsaleor/webhook/payloads.py790def generate_product_variant_listings_payload(variant_channel_listings):CODE
LOWsaleor/webhook/payloads.py807def generate_product_variant_media_payload(product_variant):CODE
LOWsaleor/webhook/payloads.py823def generate_product_variant_payload(CODE
LOWsaleor/webhook/payloads.py862def generate_product_variant_stocks_payload(product_variant: "ProductVariant"):CODE
LOWsaleor/webhook/payloads.py868def generate_fulfillment_lines_payload(fulfillment: Fulfillment):CODE
LOWsaleor/webhook/payloads.py943def generate_fulfillment_payload(CODE
LOWsaleor/webhook/payloads.py1021def _generate_refund_data_payload(data):CODE
14371 more matches not shown…
Hallucination Indicators313 hits · 3145 pts
SeverityFileLineSnippetContext
CRITICALsaleor/webhook/validators.py1from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/webhook/tests/test_webhook_validators.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/thumbnail/models.py1from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/thumbnail/validators.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/thumbnail/tests/test_validators.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/order/utils.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/order/tests/test_calculations.py1273 line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/order/tests/test_fulfillments_actions.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/notification/validation.py1from django.core.exceptions import ValidationErrorCODE
CRITICAL⚡saleor/core/tests/test_notification.py2from django.core.exceptions import ValidationErrorCODE
CRITICAL…leor/core/management/commands/clean_editorjs_fields.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/utils/url.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/utils/promo_code.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/editorjs/models.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/editorjs/cleaners.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/core/editorjs/converters.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/tasks.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/manifest_validations.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/manifest_schema.py3from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsaleor/app/tests/test_installation_utils.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/tests/test_validators.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/tests/test_manifest_validations.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/app/management/commands/install_app.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/email_common.py17from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/avatax/plugin.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/avatax/tests/test_avatax.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/tests/test_email_common.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/openid_connect/utils.py13from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/openid_connect/plugin.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/openid_connect/tests/test_utils.py13from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/openid_connect/tests/test_plugin.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/admin_email/tests/test_plugin.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/user_email/tests/test_plugin.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/payment/gateways/stripe/plugin.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/payment/gateways/stripe/webhooks.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/payment/gateways/stripe/tests/test_plugin.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/payment/gateways/stripe/tests/test_webhooks.py7from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/tax/tests/test_checkout_calculations.py193 first_line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/tax/tests/test_checkout_calculations.py251 first_line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/tax/tests/test_checkout_calculations.py310 first_line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/checkout/tasks.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/checkout/complete_checkout.py11from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/checkout/utils.py11from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/checkout/checkout_cleaner.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/checkout/tests/test_checkout_complete.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/checkout/tests/test_calculations.py335 line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/checkout/tests/test_calculations.py444 line.variant.product.tax_class.country_rates.update_or_create(CODE
CRITICALsaleor/checkout/tests/test_order_from_checkout.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/error.py1from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/mixins.py1from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/subscription_query.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/mutations/utils.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/mutations/webhook_delete.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/mutations/webhook_create.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/webhook/tests/test_subscription_query.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/order/types.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/order/utils.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/order/filters.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/order/schema.py2from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/graphql/order/mutations/order_fulfill.py5from django.core.exceptions import ValidationErrorCODE
253 more matches not shown…
Structural Annotation Overuse854 hits · 1378 pts
SeverityFileLineSnippetContext
LOW⚡.claude/skills/saleor-django-migration/SKILL.md25### Step 1: Make model changesCOMMENT
LOW⚡.claude/skills/saleor-django-migration/SKILL.md29### Step 2: Generate migrationCOMMENT
LOW⚡.claude/skills/saleor-django-migration/SKILL.md37### Step 3: Read and analyze the generated migrationCOMMENT
LOW⚡.claude/skills/saleor-django-migration/SKILL.md44### Step 4: Apply separation rulesCOMMENT
LOW.claude/skills/saleor-django-migration/SKILL.md63### Step 5: VerifyCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md21## Step 1: Identify what to benchmarkCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md31## Step 2: Generate bulk data scriptCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md108## Step 3: Populate the databaseCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md125## Step 4: Extract the SQL queryCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md160## Step 5: Analyze queries and generate reportCOMMENT
LOW.claude/skills/filter-benchmark/SKILL.md194## Step 6: Wrap upCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py91 # Step 1 - create gift cardCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py95 # Step 2 - prepare channel and productCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py100 # Step 3 - create checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py112 # Step 4 - add gift card to checkout with addPromoCodeCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py115 # Step 5 - add gift card to checkout via transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py123 # Step 6 - complete checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py126 # Step 7 - check gift card fundsCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py136 # Step 8 - check order payment status and gift card transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py162 # Step 1 - create gift cardCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py166 # Step 2 - prepare channel and productCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py171 # Step 3 - create checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py183 # Step 4 - add gift card to checkout via transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py191 # Step 5 - complete checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py214 # Step 6 - check gift card fundsCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py222 # Step 7 - check order payment status and gift card transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py248 # Step 1 - create gift cardCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py252 # Step 2 - prepare channel and productCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py257 # Step 3 - create checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py269 # Step 4 - add gift card to checkout via transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py277 # Step 5 - complete checkoutCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py300 # Step 6 - check gift card fundsCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py305 # Step 7 - check order payment status and gift card transactionCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py331 # Step 1 - create gift cardCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py335 # Step 2 - prepare channel and productCOMMENT
LOW⚡saleor/tests/e2e/gift_cards/test_gift_cards.py340 # Step 3 - create checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py352 # Step 4 - add gift card to checkout with addPromoCodeCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py355 # Step 5 - create another checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py367 # Step 6 - add gift card to another checkout via transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py375 # Step 6 - complete checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py388 # Step 6 - check gift card fundsCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py395 # Step 7 - check order payment status and gift card transactionCOMMENT
LOW⚡saleor/tests/e2e/product/test_create_simple_product.py64 # Step 1 - Create product with attributeCOMMENT
LOW⚡saleor/tests/e2e/product/test_create_simple_product.py73 # Step 2 - Update product channel listingCOMMENT
LOW⚡saleor/tests/e2e/product/test_create_simple_product.py80 # Step 3 - Create variantCOMMENT
LOWsaleor/tests/e2e/product/test_create_simple_product.py94 # Step 4 - Update variant channel listingCOMMENT
LOWsaleor/tests/e2e/product/test_create_simple_product.py102 # Step 5 - Check product and variant dataCOMMENT
LOW…create_product_with_restricted_reference_attributes.py45 # Step 1 - Create reference attributes with reference typesCOMMENT
LOW…create_product_with_restricted_reference_attributes.py100 # Step 2 - Create product type with the attributesCOMMENT
LOW…create_product_with_restricted_reference_attributes.py113 # Step 3 - Prepare references not valid for specified attributesCOMMENT
LOW…create_product_with_restricted_reference_attributes.py137 # Step 4 - Create product with a wrong attribute value and check for errorCOMMENT
LOW…create_product_with_restricted_reference_attributes.py155 # Step 5 - Create product with a correct attribute valuesCOMMENT
LOW…create_product_with_restricted_reference_attributes.py186 # Step 6 - Update attributes and clear reference typesCOMMENT
LOW…create_product_with_restricted_reference_attributes.py202 # Step 7 - Update product with a previously wrong attribute valueCOMMENT
LOW…oduct/test_create_product_with_all_attributes_types.py42 # Step 1 - Bulk create attributes for each input typeCOMMENT
LOW…oduct/test_create_product_with_all_attributes_types.py60 # Step 2 - Create product type with all attributesCOMMENT
LOW…oduct/test_create_product_with_all_attributes_types.py83 # Step 3 - Create product with all attributesCOMMENT
LOW⚡…ct_no_longer_on_promotion_when_promotion_is_removed.py77 # Step 1 - Check product is on promotionCOMMENT
LOW⚡…ct_no_longer_on_promotion_when_promotion_is_removed.py86 # Step 2 - Remove the promotion and check the product is not on promotionCOMMENT
LOW⚡…ct_no_longer_on_promotion_when_promotion_is_removed.py95 # Step 3 - Check product in no longer on promotionCOMMENT
794 more matches not shown…
Unused Imports1345 hits · 1152 pts
SeverityFileLineSnippetContext
LOW…orrectness/django/django-no-default-token-generator.py3CODE
LOW…orrectness/django/django-no-default-token-generator.py8CODE
LOW…orrectness/django/django-no-default-token-generator.py12CODE
LOWsaleor/__init__.py1CODE
LOWsaleor/webhook/serializers.py16CODE
LOWsaleor/webhook/serializers.py17CODE
LOWsaleor/webhook/payload_helpers.py11CODE
LOWsaleor/webhook/utils.py14CODE
LOWsaleor/webhook/payloads.py13CODE
LOWsaleor/webhook/payloads.py31CODE
LOWsaleor/webhook/payloads.py33CODE
LOWsaleor/webhook/payloads.py50CODE
LOWsaleor/webhook/payloads.py51CODE
LOWsaleor/webhook/payloads.py52CODE
LOWsaleor/webhook/payloads.py52CODE
LOWsaleor/webhook/payloads.py52CODE
LOWsaleor/webhook/payloads.py52CODE
LOWsaleor/webhook/payloads.py58CODE
LOWsaleor/webhook/payloads.py59CODE
LOWsaleor/webhook/circuit_breaker/breaker_board.py21CODE
LOWsaleor/webhook/transport/list_stored_payment_methods.py8CODE
LOWsaleor/webhook/transport/payment.py4CODE
LOWsaleor/webhook/transport/payment.py5CODE
LOWsaleor/webhook/transport/asynchronous/transport.py65CODE
LOWsaleor/webhook/transport/asynchronous/__init__.py1CODE
LOWsaleor/webhook/transport/asynchronous/__init__.py1CODE
LOWsaleor/webhook/transport/asynchronous/__init__.py1CODE
LOWsaleor/webhook/transport/synchronous/transport.py28CODE
LOWsaleor/webhook/transport/synchronous/transport.py59CODE
LOWsaleor/webhook/transport/synchronous/transport.py60CODE
LOWsaleor/webhook/transport/synchronous/transport.py61CODE
LOWsaleor/webhook/observability/obfuscation.py26CODE
LOWsaleor/webhook/observability/obfuscation.py28CODE
LOWsaleor/webhook/observability/__init__.py1CODE
LOWsaleor/webhook/observability/__init__.py2CODE
LOWsaleor/webhook/observability/__init__.py3CODE
LOWsaleor/webhook/observability/__init__.py3CODE
LOWsaleor/webhook/observability/__init__.py4CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/__init__.py5CODE
LOWsaleor/webhook/observability/utils.py27CODE
LOWsaleor/webhook/observability/utils.py28CODE
LOWsaleor/webhook/observability/utils.py30CODE
LOWsaleor/webhook/observability/payloads.py43CODE
LOWsaleor/webhook/observability/payloads.py44CODE
LOWsaleor/thumbnail/utils.py28CODE
LOWsaleor/order/fetch.py8CODE
LOWsaleor/order/fetch.py14CODE
LOWsaleor/order/fetch.py19CODE
LOWsaleor/order/fetch.py26CODE
LOWsaleor/order/fetch.py31CODE
LOWsaleor/order/delivery_context.py9CODE
LOWsaleor/order/delivery_context.py21CODE
1285 more matches not shown…
Cross-File Repetition87 hits · 435 pts
SeverityFileLineSnippetContext
HIGH…nous/tests/test_create_deliveries_for_subscriptions.py0subscription { event { issuedat ... on productvariantupdated { productvariant { name } } } }STRING
HIGH…eor/graphql/webhook/tests/test_subscription_payload.py0subscription { event { issuedat ... on productvariantupdated { productvariant { name } } } }STRING
HIGH…ct/tests/mutations/test_product_variant_bulk_update.py0subscription { event { issuedat ... on productvariantupdated { productvariant { name } } } }STRING
HIGH…_create_deliveries_for_transaction_refund_requested.py0subscription { event { ... on transactionchargerequested { transaction { ...transactionfragment } action { actiontype amSTRING
HIGH…te_deliveries_for_transaction_cancelation_requested.py0subscription { event { ... on transactionchargerequested { transaction { ...transactionfragment } action { actiontype amSTRING
HIGH…_create_deliveries_for_transaction_charge_requested.py0subscription { event { ... on transactionchargerequested { transaction { ...transactionfragment } action { actiontype amSTRING
HIGH…ok/tests/subscription_webhooks/subscription_queries.py0subscription{ event{ ...on productupdated{ product{ id name } } } }STRING
HIGHsaleor/graphql/webhook/tests/test_subscription_query.py0subscription{ event{ ...on productupdated{ product{ id name } } } }STRING
HIGHsaleor/webhook/observability/tests/test_obfuscation.py0subscription{ event{ ...on productupdated{ product{ id name } } } }STRING
HIGHsaleor/tests/e2e/account/utils/fragments.py0fragment address on address { id firstname lastname companyname streetaddress1 streetaddress2 city postalcode country { STRING
HIGHsaleor/graphql/tests/queries/fragments.py0fragment address on address { id firstname lastname companyname streetaddress1 streetaddress2 city postalcode country { STRING
HIGH…ql/checkout/tests/benchmark/test_checkout_mutations.py0fragment address on address { id firstname lastname companyname streetaddress1 streetaddress2 city postalcode country { STRING
HIGHsaleor/graphql/order/mutations/order_line_update.py0retrieve the instance channel id for channel permission accessible check.STRING
HIGHsaleor/graphql/core/mutations.py0retrieve the instance channel id for channel permission accessible check.STRING
HIGHsaleor/graphql/translations/mutations/utils.py0retrieve the instance channel id for channel permission accessible check.STRING
HIGH…or/graphql/order/tests/benchmark/test_order_fulfill.py0mutation fulfillorder( $order: id, $input: orderfulfillinput! ) { orderfulfill( order: $order, input: $input ) { fulfillSTRING
HIGHsaleor/graphql/order/tests/deprecated/test_order.py0mutation fulfillorder( $order: id, $input: orderfulfillinput! ) { orderfulfill( order: $order, input: $input ) { fulfillSTRING
HIGH…or/graphql/order/tests/mutations/test_order_fulfill.py0mutation fulfillorder( $order: id, $input: orderfulfillinput! ) { orderfulfill( order: $order, input: $input ) { fulfillSTRING
HIGH…nchmark/test_fulfillment_refund_and_return_products.py0mutation orderfulfillmentrefundproducts( $order: id!, $input: orderrefundproductsinput! ) { orderfulfillmentrefundproducSTRING
HIGH…er/tests/mutations/test_fulfillment_refund_products.py0mutation orderfulfillmentrefundproducts( $order: id!, $input: orderrefundproductsinput! ) { orderfulfillmentrefundproducSTRING
HIGHsaleor/graphql/order/tests/deprecated/test_order.py0mutation orderfulfillmentrefundproducts( $order: id!, $input: orderrefundproductsinput! ) { orderfulfillmentrefundproducSTRING
HIGH…nchmark/test_fulfillment_refund_and_return_products.py0mutation orderfulfillmentreturnproducts( $order: id!, $input: orderreturnproductsinput! ) { orderfulfillmentreturnproducSTRING
HIGH…er/tests/mutations/test_fulfillment_return_products.py0mutation orderfulfillmentreturnproducts( $order: id!, $input: orderreturnproductsinput! ) { orderfulfillmentreturnproducSTRING
HIGHsaleor/graphql/order/tests/deprecated/test_order.py0mutation orderfulfillmentreturnproducts( $order: id!, $input: orderreturnproductsinput! ) { orderfulfillmentreturnproducSTRING
HIGH…eor/graphql/order/tests/integration/test_bulk_order.py0query ($filter: orderfilterinput!, ) { orders(first: 5, filter:$filter) { totalcount edges { node { id lines{ productskuSTRING
HIGHsaleor/graphql/core/tests/test_scalars.py0query ($filter: orderfilterinput!, ) { orders(first: 5, filter:$filter) { totalcount edges { node { id lines{ productskuSTRING
HIGH…/graphql/order/tests/queries/test_order_with_filter.py0query ($filter: orderfilterinput!, ) { orders(first: 5, filter:$filter) { totalcount edges { node { id lines{ productskuSTRING
HIGH…hql/order/tests/mutations/test_draft_order_complete.py0check if checkout can be completed with invalid address. after introducing `addressinput.skip_validation`, saleor may haSTRING
HIGH…/mutations/test_checkout_complete_with_transactions.py0check if checkout can be completed with invalid address. after introducing `addressinput.skip_validation`, saleor may haSTRING
HIGH…tests/mutations/test_checkout_complete_with_payment.py0check if checkout can be completed with invalid address. after introducing `addressinput.skip_validation`, saleor may haSTRING
HIGHsaleor/graphql/order/bulk_mutations/draft_orders.py0get the instances channel ids for channel permission accessible check.STRING
HIGH…leor/graphql/order/bulk_mutations/order_bulk_cancel.py0get the instances channel ids for channel permission accessible check.STRING
HIGHsaleor/graphql/core/mutations.py0get the instances channel ids for channel permission accessible check.STRING
HIGHsaleor/graphql/order/bulk_mutations/draft_orders.py0perform a mutation that deletes a list of model instances.STRING
HIGHsaleor/graphql/core/mutations.py0perform a mutation that deletes a list of model instances.STRING
HIGHsaleor/graphql/discount/mutations/bulk_mutations.py0perform a mutation that deletes a list of model instances.STRING
HIGHsaleor/graphql/page/dataloaders.py0filter attributes based on custom logic, if needed.STRING
HIGHsaleor/graphql/product/dataloaders/attributes.py0filter attributes based on custom logic, if needed.STRING
HIGHsaleor/graphql/account/dataloaders.py0filter attributes based on custom logic, if needed.STRING
HIGHsaleor/graphql/page/tests/benchmark/test_page_type.py0query getappinfederation($representations: [_any!]!) { _entities(representations: $representations) { __typename ... on STRING
HIGHsaleor/graphql/page/tests/queries/test_page_type.py0query getappinfederation($representations: [_any!]!) { _entities(representations: $representations) { __typename ... on STRING
HIGHsaleor/graphql/app/tests/queries/test_apps.py0query getappinfederation($representations: [_any!]!) { _entities(representations: $representations) { __typename ... on STRING
HIGHsaleor/graphql/app/tests/benchmarks/test_apps.py0query getappinfederation($representations: [_any!]!) { _entities(representations: $representations) { __typename ... on STRING
HIGHsaleor/graphql/core/tests/test_query_cost_validation.py0query variantavailability($id: id!, $channel: string) {{ {query_fields} }}STRING
HIGHsaleor/graphql/tests/test_tracing.py0query variantavailability($id: id!, $channel: string) {{ {query_fields} }}STRING
HIGHsaleor/graphql/tests/test_metrics.py0query variantavailability($id: id!, $channel: string) {{ {query_fields} }}STRING
HIGH…raphql/app/tests/mutations/test_app_problem_dismiss.py0mutation appproblemdismiss($input: appproblemdismissinput!) { appproblemdismiss(input: $input) { errors { field code mesSTRING
HIGH…tations/test_app_problem_dismiss_by_staff_with_keys.py0mutation appproblemdismiss($input: appproblemdismissinput!) { appproblemdismiss(input: $input) { errors { field code mesSTRING
HIGH…utations/test_app_problem_dismiss_by_staff_with_ids.py0mutation appproblemdismiss($input: appproblemdismissinput!) { appproblemdismiss(input: $input) { errors { field code mesSTRING
HIGH…app/tests/mutations/test_app_problem_dismiss_by_app.py0mutation appproblemdismiss($input: appproblemdismissinput!) { appproblemdismiss(input: $input) { errors { field code mesSTRING
HIGH…graphql/app/tests/mutations/test_app_problem_create.py0mutation appproblemcreate($input: appproblemcreateinput!) { appproblemcreate(input: $input) { appproblem { id message keSTRING
HIGH…/tests/mutations/test_app_problem_create_validation.py0mutation appproblemcreate($input: appproblemcreateinput!) { appproblemcreate(input: $input) { appproblem { id message keSTRING
HIGH…tests/mutations/test_app_problem_create_aggregation.py0mutation appproblemcreate($input: appproblemcreateinput!) { appproblemcreate(input: $input) { appproblem { id message keSTRING
HIGH…pp/tests/mutations/test_app_problem_create_eviction.py0mutation appproblemcreate($input: appproblemcreateinput!) { appproblemcreate(input: $input) { appproblem { id message keSTRING
HIGH…pp/tests/mutations/test_app_problem_create_critical.py0mutation appproblemcreate($input: appproblemcreateinput!) { appproblemcreate(input: $input) { appproblem { id message keSTRING
HIGH…ent/tests/mutations/test_payment_gateway_initialize.py0subscription { event { ... on shippinglistmethodsforcheckout { checkout { email token } } } }STRING
HIGH…payment/tests/mutations/test_transaction_initialize.py0subscription { event { ... on shippinglistmethodsforcheckout { checkout { email token } } } }STRING
HIGH…ql/payment/tests/mutations/test_transaction_process.py0subscription { event { ... on shippinglistmethodsforcheckout { checkout { email token } } } }STRING
HIGHsaleor/graphql/utils/validators.py0check if any items are on both input field. raise error if some of items are duplicated.STRING
HIGHsaleor/graphql/shipping/mutations/base.py0check if any items are on both input field. raise error if some of items are duplicated.STRING
27 more matches not shown…
Modern Structural Boilerplate160 hits · 162 pts
SeverityFileLineSnippetContext
LOWsaleor/__init__.py3__all__ = ["celery_app"]CODE
LOWsaleor/webhook/circuit_breaker/storage.py10logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/transport/list_stored_payment_methods.py34logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/transport/utils.py55logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/transport/asynchronous/transport.py68logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/transport/asynchronous/__init__.py7__all__ = [CODE
LOWsaleor/webhook/transport/synchronous/transport.py66logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/response_schemas/transaction.py20logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/response_schemas/shipping.py22logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/response_schemas/utils/annotations.py24logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/response_schemas/utils/annotations.py26logger = logging.getLogger(__name__)CODE
LOWsaleor/webhook/observability/__init__.py17__all__ = [CODE
LOWsaleor/webhook/observability/utils.py32logger = logging.getLogger(__name__)CODE
LOWsaleor/thumbnail/validators.py14logger = logging.getLogger(__name__)CODE
LOWsaleor/thumbnail/utils.py30logger = logging.getLogger(__name__)CODE
LOWsaleor/thumbnail/views.py32logger = logging.getLogger(__name__)CODE
LOWsaleor/order/delivery_context.py24logger = logging.getLogger(__name__)CODE
LOWsaleor/order/tasks.py28logger = logging.getLogger(__name__)CODE
LOWsaleor/order/actions.py82logger = logging.getLogger(__name__)CODE
LOWsaleor/order/calculations.py68logger = logging.getLogger(__name__)CODE
LOWsaleor/order/utils.py79logger = logging.getLogger(__name__)CODE
LOWsaleor/order/webhooks/exclude_shipping.py28logger = logging.getLogger(__name__)CODE
LOWsaleor/order/webhooks/order_calculate_taxes.py28logger = logging.getLogger(__name__)CODE
LOWsaleor/asgi/usage_telemetry.py25logger = logging.getLogger(__name__)CODE
LOWsaleor/core/search_tasks.py136def set_product_search_document_values(updated_count: int = 0) -> None:CODE
LOWsaleor/core/apps.py26 def set_pillow_pixel_limit() -> None:CODE
LOWsaleor/core/jwt_manager.py21logger = logging.getLogger(__name__)CODE
LOWsaleor/core/postgres.py13logger = logging.getLogger(__name__)CODE
LOWsaleor/core/middleware.py15logger = logging.getLogger(__name__)CODE
LOWsaleor/core/views.py11logger = logging.getLogger(__name__)CODE
LOWsaleor/core/utils/anonymization.py15logger = logging.getLogger(__name__)CODE
LOWsaleor/core/editorjs/converters.py10logger = logging.getLogger(__name__)CODE
LOWsaleor/core/db/connection.py12logger = logging.getLogger(__name__)CODE
LOWsaleor/core/telemetry/trace.py21logger = logging.getLogger(__name__)CODE
LOWsaleor/core/telemetry/__init__.py64__all__ = [CODE
LOWsaleor/core/telemetry/metric.py20logger = logging.getLogger(__name__)CODE
LOWsaleor/core/telemetry/utils.py15logger = logging.getLogger(__name__)CODE
LOWsaleor/app/tasks.py18logger = logging.getLogger(__name__)CODE
LOWsaleor/app/manifest_validations.py36logger = logging.getLogger(__name__)CODE
LOWsaleor/app/actions.py16logger = logging.getLogger(__name__)CODE
LOW⚡saleor/app/installation_utils.py36logger = logging.getLogger(__name__)CODE
LOW…bute/management/commands/update_attribute_file_urls.py12logger = logging.getLogger(__name__)CODE
LOWsaleor/attribute/models/__init__.py16__all__ = [CODE
LOWsaleor/plugins/email_common.py33logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/webhook/plugin.py155logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/avatax/__init__.py39logger = logging.getLogger(__name__)CODE
LOW⚡saleor/plugins/avatax/plugin.py66logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/avatax/plugin.py817 def _set_order_tax_error(self, order: "Order", tax_error: str) -> None:CODE
LOWsaleor/plugins/openid_connect/utils.py64logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/openid_connect/plugin.py49logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/admin_email/plugin.py33logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/user_email/plugin.py47logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/gateway.py50logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/tasks.py20logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/utils.py91logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/gateways/stripe/stripe_api.py25logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/gateways/stripe/plugin.py53logger = logging.getLogger(__name__)CODE
LOWsaleor/payment/gateways/stripe/webhooks.py47logger = logging.getLogger(__name__)CODE
LOWsaleor/tests/e2e/shipping_zone/utils/__init__.py6__all__ = [CODE
LOWsaleor/tests/e2e/sales/utils/__init__.py8__all__ = [CODE
100 more matches not shown…
Fake / Example Data168 hits · 155 pts
SeverityFileLineSnippetContext
LOWsaleor/webhook/tests/test_payment_webhook_utils.py157 "name": "John Doe",CODE
LOW⚡saleor/core/cleaners/tests/test_urls.py82 ("mailto:%22not%40me%22@example.org", None),CODE
LOW⚡saleor/core/cleaners/tests/test_urls.py83 ("mailto:%22oh%5C%5Cno%22@example.org", None),CODE
LOW⚡saleor/core/cleaners/tests/test_urls.py85 "mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org",CODE
LOW⚡saleor/core/cleaners/tests/test_urls.py87 "mailto:%22%5C%5C%5C%22it%27s%5C%20ugly%5C%5C%5C%22%22@example.org",CODE
LOWsaleor/core/cleaners/tests/test_urls.py114 "mailto:" + ",".join(["user@example.com"] * 11),CODE
LOW⚡saleor/core/tests/test_search.py90 assert parse_search_query("user@example.com") == "user@example.com:*"CODE
LOWsaleor/core/tests/test_core.py78 "email": "admin@example.com",CODE
LOWsaleor/core/management/commands/populatedb.py86 superuser_email = "admin@example.com"CODE
LOW⚡saleor/core/utils/anonymization.py40 fake_user = create_fake_user(user_password=None, save=False, generate_id=True)CODE
LOW⚡saleor/core/utils/anonymization.py42 fake_user.save = _fake_saveCODE
LOW⚡saleor/core/utils/anonymization.py43 return fake_userCODE
LOW⚡saleor/core/utils/anonymization.py59 fake_user = generate_fake_user()CODE
LOW⚡saleor/core/utils/anonymization.py60 anonymized_order.user = fake_userCODE
LOW⚡saleor/core/utils/anonymization.py61 anonymized_order.user_email = fake_user.emailCODE
LOW⚡saleor/core/utils/anonymization.py78 fake_user = generate_fake_user()CODE
LOW⚡saleor/core/utils/anonymization.py79 anonymized_checkout.user = fake_userCODE
LOW⚡saleor/core/utils/anonymization.py80 anonymized_checkout.email = fake_user.emailCODE
LOWsaleor/app/tests/test_installation_utils.py163 app_manifest["author"] = "Acme Ltd"CODE
LOWsaleor/app/tests/test_manifest_validations.py123 assert schema.author == "Acme Ltd"CODE
LOW…app/tests/cassettes/test_sends_data_to_target_url.yaml18 : \"Lorem ipsum\",\n \"data_privacy\": \"Lorem ipsum\",\n \"data_privacy_url\"\CODE
LOW…t_app_tasks/test_install_app_task_request_timeout.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…ts/cassettes/test_app_tasks/test_install_app_task.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…install_app_task_wrong_format_of_target_token_url.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…pp_from_manifest_app_has_all_required_permissions.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…pp_from_manifest_app_has_all_required_permissions.yaml69 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…est_creates_app_from_manifest_installation_failed.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…est_creates_app_from_manifest_installation_failed.yaml67 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…/test_app_commands/test_creates_app_from_manifest.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…/test_app_commands/test_creates_app_from_manifest.yaml69 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…mands/test_creates_app_from_manifest_activate_app.yaml18 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW…mands/test_creates_app_from_manifest_activate_app.yaml69 : \"Lorem ipsum\",\n \"dataPrivacy\": \"Lorem ipsum\",\n \"dataPrivacyUrl\"\CODE
LOW⚡saleor/plugins/openid_connect/tests/test_utils.py856 access_token="fake-token",CODE
LOW⚡saleor/plugins/openid_connect/tests/test_utils.py864 assert user.email == "test@example.org"CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py840 "email": "test@example.org",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py904 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py949 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py993 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py1046 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py1098 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/conftest.py118 "name": "John Doe",CODE
LOWsaleor/plugins/openid_connect/tests/conftest.py137 "email": "admin@example.com",CODE
LOWsaleor/plugins/openid_connect/tests/test_plugin.py778 staff_user.email = "admin@example.com"CODE
LOWsaleor/plugins/admin_email/tests/conftest.py49 sender_address="admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py25 "recipient_email": "user@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py51 "recipient_email": "user@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py72 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py93 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py113 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py134 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py155 "recipient_list": ["admin@example.com"],CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py177 "recipient_list": ["admin@example.com"],CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py194 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_notify_events.py211 "recipient_email": "admin@example.com",CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py23 recipient_email = "admin@example.com"CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py56 recipient_email = "admin@example.com"CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py88 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py121 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py154 recipient_email = "admin@example.com"CODE
LOWsaleor/plugins/admin_email/tests/test_tasks.py191 recipient_email = "admin@example.com"CODE
108 more matches not shown…
Empty Error Handlers26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHsaleor/webhook/transport/payment.py63except decimal.DecimalException:CODE
HIGHsaleor/order/calculations.py545except TaxError:CODE
HIGHsaleor/order/calculations.py535except TaxError:CODE
HIGHsaleor/asgi/asgi_handler.py77except asyncio.CancelledError:CODE
HIGHsaleor/asgi/asgi_handler.py98except RequestAborted:CODE
HIGHsaleor/asgi/asgi_handler.py109except asyncio.CancelledError:CODE
HIGHsaleor/core/logging.py20except (TypeError, IndexError, AttributeError):CODE
HIGHsaleor/core/utils/random_data.py917except User.DoesNotExist:CODE
HIGHsaleor/core/db/tests/test_connection.py35except Exception:CODE
HIGHsaleor/app/installation_utils.py98except (ValueError, TypeError):CODE
HIGHsaleor/plugins/webhook/tests/test_webhook.py1995except CeleryTaskRetryError:CODE
HIGHsaleor/payment/gateways/stripe/stripe_api.py91except InvalidRequestError:CODE
HIGHsaleor/shipping/interface.py42except graphql.error.base.GraphQLError:CODE
HIGHsaleor/shipping/postal_codes.py31except TypeError:CODE
HIGHsaleor/discount/utils/promotion.py156except NotApplicable:CODE
HIGHsaleor/graphql/views.py677except IndexError:CODE
HIGH…leor/graphql/order/bulk_mutations/order_bulk_create.py769except GraphQLError:CODE
HIGHsaleor/graphql/core/mutations.py435except KeyError:CODE
HIGH…/graphql/core/tests/garbage_collection/test_asgiref.py26except AttributeError:CODE
HIGHsaleor/graphql/core/validators/query_cost.py230except (ValueError, TypeError):CODE
HIGH…eor/graphql/account/mutations/staff/customer_create.py98except instance.DoesNotExist:CODE
HIGH…/graphql/account/mutations/account/account_register.py227except models.User.DoesNotExist:CODE
HIGHsaleor/giftcard/gateway.py454except GiftCard.DoesNotExist:CODE
HIGHsaleor/giftcard/gateway.py360except GiftCard.DoesNotExist:CODE
HIGHsaleor/account/management/commands/createsuperuser.py96except exceptions.FieldDoesNotExist:CODE
HIGHsaleor/account/management/commands/createsuperuser.py275except User.DoesNotExist:CODE
Deep Nesting120 hits · 110 pts
SeverityFileLineSnippetContext
LOW.claude/skills/filter-benchmark/analyze_query.py67CODE
LOWsaleor/webhook/utils.py162CODE
LOWsaleor/webhook/payloads.py1089CODE
LOWsaleor/webhook/payloads.py1123CODE
LOWsaleor/webhook/transport/asynchronous/transport.py85CODE
LOWsaleor/webhook/transport/asynchronous/transport.py332CODE
LOWsaleor/webhook/transport/asynchronous/transport.py852CODE
LOWsaleor/webhook/transport/asynchronous/transport.py947CODE
LOWsaleor/webhook/transport/asynchronous/transport.py1008CODE
LOWsaleor/webhook/transport/asynchronous/transport.py1020CODE
LOWsaleor/webhook/transport/asynchronous/transport.py150CODE
LOWsaleor/webhook/observability/utils.py59CODE
LOWsaleor/thumbnail/utils.py185CODE
LOWsaleor/order/actions.py864CODE
LOWsaleor/order/actions.py1451CODE
LOWsaleor/order/calculations.py118CODE
LOWsaleor/order/calculations.py125CODE
LOWsaleor/order/utils.py127CODE
LOWsaleor/order/utils.py210CODE
LOWsaleor/order/base_calculations.py85CODE
LOWsaleor/order/base_calculations.py215CODE
LOWsaleor/asgi/cors_handler.py15CODE
LOWsaleor/asgi/cors_handler.py16CODE
LOWsaleor/asgi/cors_handler.py69CODE
LOWsaleor/asgi/gzip_compression.py32CODE
LOWsaleor/asgi/gzip_compression.py35CODE
LOWsaleor/asgi/gzip_compression.py59CODE
LOWsaleor/core/sqs.py13CODE
LOWsaleor/core/search.py89CODE
LOW…leor/core/management/commands/clean_editorjs_fields.py162CODE
LOWsaleor/core/management/commands/remove_invalid_files.py136CODE
LOWsaleor/core/editorjs/models.py243CODE
LOWsaleor/attribute/search.py11CODE
LOWsaleor/attribute/models/base.py311CODE
LOWsaleor/attribute/models/base.py551CODE
LOWsaleor/plugins/manager.py151CODE
LOWsaleor/plugins/manager.py2629CODE
LOWsaleor/plugins/admin_email/plugin.py206CODE
LOWsaleor/plugins/admin_email/plugin.py213CODE
LOWsaleor/plugins/user_email/plugin.py359CODE
LOWsaleor/plugins/user_email/plugin.py366CODE
LOWsaleor/payment/tasks.py89CODE
LOWsaleor/payment/utils.py587CODE
LOWsaleor/payment/transaction_item_calculations.py235CODE
LOWsaleor/payment/transaction_item_calculations.py265CODE
LOWsaleor/payment/gateways/stripe/plugin.py160CODE
LOWsaleor/tests/utils.py91CODE
LOWsaleor/tests/e2e/shop/utils/preparing_shop.py51CODE
LOWsaleor/checkout/delivery_context.py771CODE
LOWsaleor/checkout/complete_checkout.py1579CODE
LOWsaleor/checkout/utils.py186CODE
LOWsaleor/checkout/payment_utils.py16CODE
LOWsaleor/checkout/payment_utils.py42CODE
LOWsaleor/checkout/base_calculations.py264CODE
LOWsaleor/discount/utils/voucher.py621CODE
LOWsaleor/graphql/schema_printer.py375CODE
LOWsaleor/graphql/views.py364CODE
LOWsaleor/graphql/webhook/mutations/webhook_trigger.py159CODE
LOWsaleor/graphql/order/utils.py95CODE
LOWsaleor/graphql/order/utils.py173CODE
60 more matches not shown…
Excessive Try-Catch Wrapping61 hits · 84 pts
SeverityFileLineSnippetContext
LOW.claude/skills/filter-benchmark/analyze_query.py191 except Exception as e:CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py2def test_log_info_exception():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py10def test_log_catch_multiple_exceptions():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py39def test_log_info_exception():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py55def test_log_exception_trailing_arguments_case1():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py65def test_log_exception_trailing_arguments_case2():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py74def test_log_exception_with_finally_block():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py84def test_log_exception_with_else_block():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py94def test_log_exception_with_finally_else_block():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py106def test_not_logging_exception():CODE
MEDIUM…p/security/logging/exception-object-in-logger-extra.py115def test_not_logging_exception():CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py50 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py58 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py68 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py77 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py87 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py97 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py109 except Exception as exc:CODE
LOW⚡…p/security/logging/exception-object-in-logger-extra.py118 except Exception as exc:CODE
LOW…p/security/logging/exception-object-in-logger-extra.py5 except Exception as exc:CODE
LOW…p/security/logging/exception-object-in-logger-extra.py32 except Exception as exc:CODE
LOW⚡saleor/webhook/observability/utils.py101 except Exception:CODE
LOW⚡saleor/webhook/observability/utils.py111 except Exception:CODE
LOWsaleor/asgi/usage_telemetry.py39 except Exception:CODE
LOWsaleor/asgi/usage_telemetry.py224 except Exception:CODE
LOWsaleor/core/transactions.py17 except Exception as e:CODE
LOWsaleor/core/jwt_manager.py219 except Exception as e:CODE
LOW⚡saleor/core/management/commands/remove_invalid_files.py165 except Exception:CODE
LOW⚡saleor/core/management/commands/remove_invalid_files.py167 except Exception as e:CODE
LOWsaleor/core/management/commands/remove_invalid_files.py196 except Exception as e:CODE
LOWsaleor/core/utils/lazyobjects.py29 except Exception as exc:CODE
LOW⚡saleor/core/db/tests/test_connection.py35 except Exception:CODE
LOWsaleor/core/telemetry/tests/test_utils.py222 except Exception as e:CODE
LOWsaleor/app/tasks.py58 except Exception as e:CODE
MEDIUMsaleor/app/tasks.py23def install_app_task(job_id, activate=False):CODE
LOWsaleor/app/manifest_validations.py370 except Exception as e:CODE
MEDIUMsaleor/app/manifest_validations.py79def clean_manifest_url(manifest_url):CODE
LOWsaleor/app/actions.py69 except Exception:CODE
LOW⚡saleor/app/installation_utils.py50 except Exception:CODE
LOWsaleor/app/management/commands/install_app.py73 except Exception as e:CODE
LOWsaleor/plugins/email_common.py324 except Exception as e:CODE
LOWsaleor/plugins/openid_connect/utils.py605 except Exception:CODE
MEDIUMsaleor/plugins/openid_connect/utils.py129def get_user_info(user_info_url, access_token) -> dict | None:CODE
LOWsaleor/checkout/search/indexing.py45 except Exception:CODE
LOWsaleor/graphql/context.py58 except Exception:CODE
LOWsaleor/graphql/views.py562 except Exception as e:CODE
MEDIUMsaleor/graphql/order/filters.py106def get_payment_id_from_query(value):CODE
LOWsaleor/graphql/order/filters.py109 except Exception:CODE
LOW…leor/graphql/order/bulk_mutations/order_bulk_create.py1102 except Exception:CODE
LOW…leor/graphql/order/bulk_mutations/order_bulk_create.py1132 except Exception:CODE
LOWsaleor/graphql/core/validators/query_cost.py88 except Exception as e:CODE
LOWsaleor/graphql/utils/__init__.py74 except Exception:CODE
LOW⚡saleor/graphql/checkout/filters.py42 except Exception:CODE
LOW⚡saleor/graphql/checkout/filters.py49 except Exception:CODE
MEDIUMsaleor/graphql/checkout/filters.py30def get_checkout_token_from_query(value):CODE
MEDIUMsaleor/graphql/checkout/filters.py46def get_checkout_id_from_query(value):CODE
LOW…leor/graphql/account/mutations/authentication/utils.py25 except Exception:CODE
MEDIUM…leor/graphql/account/mutations/authentication/utils.py22def get_user(payload):CODE
LOW…graphql/account/bulk_mutations/customer_bulk_update.py171 except Exception:CODE
LOW…/graphql/warehouse/bulk_mutations/stock_bulk_update.py141 except Exception:CODE
1 more matches not shown…
Self-Referential Comments27 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMsaleor/core/tests/test_sqs.py28 # Create a mock connection object with all required attributesCOMMENT
MEDIUMsaleor/core/tests/test_sqs.py62 # Create a mock connection object with all required attributesCOMMENT
MEDIUMsaleor/core/tests/test_view.py16 # Create a dummy empty image fileCOMMENT
MEDIUMsaleor/graphql/views.py105 # This class is our implementation of `graphene_django.views.GraphQLView`,COMMENT
MEDIUMsaleor/graphql/order/mutations/order_lines_create.py211 # Create the products added eventCOMMENT
MEDIUMsaleor/graphql/order/mutations/order_line_delete.py96 # Create the removal eventCOMMENT
MEDIUMsaleor/graphql/order/tests/queries/test_order_events.py325 # Create the test eventSTRING
MEDIUMsaleor/graphql/order/tests/queries/test_order_events.py364 # Create the test eventSTRING
MEDIUM…leor/graphql/order/bulk_mutations/order_bulk_create.py2257 # Create a copy of stocks. If full iteration over order linesCOMMENT
MEDIUMsaleor/graphql/core/connection.py463 # This function handles pagination for list-based data (e.g., from dataloaders).COMMENT
MEDIUMsaleor/graphql/core/connection.py721 # Create the edge type using the new EdgeBase.COMMENT
MEDIUM…r/graphql/core/tests/garbage_collection/test_django.py23 # Create a copy of the Django connection object and close it to free resources.COMMENT
MEDIUMsaleor/graphql/core/utils/reordering.py140 # Create the bulk update to runCOMMENT
MEDIUM…raphql/attribute/tests/queries/test_attributes_sort.py77 # Create a dummy attribute with a higher IDSTRING
MEDIUM…raphql/attribute/tests/queries/test_attributes_sort.py136 # Create a dummy attribute with a higher IDSTRING
MEDIUM…aphql/attribute/tests/queries/test_attribute_filter.py1046 # Create a second product type that shares the same attributeSTRING
MEDIUM…aphql/attribute/tests/queries/test_attribute_filter.py1120 # Create a second product type that shares the same attributeSTRING
MEDIUM…raphql/attribute/tests/queries/test_attribute_where.py1468 # Create a second product type that shares the same attributeSTRING
MEDIUM…raphql/attribute/tests/queries/test_attribute_where.py1542 # Create a second product type that shares the same attributeSTRING
MEDIUM⚡…aphql/product/tests/test_product_sorting_attributes.py642 # Create a product with a valueCOMMENT
MEDIUM⚡…aphql/product/tests/test_product_sorting_attributes.py651 # Create a product having the same product type but no attribute dataCOMMENT
MEDIUM⚡…aphql/product/tests/test_product_sorting_attributes.py656 # Create a new product having a name that would be ordered first in ascendingCOMMENT
MEDIUMsaleor/graphql/product/tests/test_attributes.py415 # Create a value for each dummy attribute to ensure they are not returnedCOMMENT
MEDIUMsaleor/graphql/checkout/mutations/checkout_create.py480 # Create the checkout objectCOMMENT
MEDIUM…tests/mutations/test_checkout_complete_with_payment.py5531 # Create a dummy payment to chargeCOMMENT
MEDIUMsaleor/account/models.py351 # This method is overridden to accept perm as BasePermissionEnumCOMMENT
MEDIUMsaleor/account/models.py362 # This method is overridden to accept perm as BasePermissionEnumCOMMENT
AI Structural Patterns71 hits · 67 pts
SeverityFileLineSnippetContext
LOWsaleor/webhook/payloads.py636CODE
LOWsaleor/webhook/payloads.py663CODE
LOWsaleor/core/telemetry/trace.py70CODE
LOWsaleor/core/telemetry/trace.py117CODE
LOWsaleor/core/telemetry/trace.py194CODE
LOWsaleor/core/telemetry/trace.py225CODE
LOWsaleor/plugins/manager.py2425CODE
LOWsaleor/plugins/manager.py2445CODE
LOWsaleor/plugins/manager.py2465CODE
LOWsaleor/plugins/manager.py2486CODE
LOWsaleor/plugins/avatax/__init__.py531CODE
LOWsaleor/plugins/avatax/__init__.py691CODE
LOWsaleor/plugins/avatax/tests/conftest.py23CODE
LOWsaleor/plugins/openid_connect/tests/conftest.py10CODE
LOWsaleor/plugins/openid_connect/tests/conftest.py50CODE
LOWsaleor/plugins/admin_email/tests/conftest.py43CODE
LOWsaleor/plugins/user_email/tests/conftest.py69CODE
LOWsaleor/payment/utils.py353CODE
LOW…or/payment/tests/test_transaction_item_calculations.py12CODE
LOWsaleor/payment/gateways/stripe/stripe_api.py121CODE
LOWsaleor/tests/e2e/sales/utils/sale_channel_listing.py71CODE
LOWsaleor/tests/e2e/sales/utils/sale_catalogues_add.py72CODE
LOWsaleor/tests/e2e/gift_cards/utils/gift_cards_query.py34CODE
LOWsaleor/tests/e2e/shop/utils/shop_update_settings.py41CODE
LOWsaleor/tests/e2e/product/utils/product_variant.py53CODE
LOW…ests/e2e/product/utils/product_variant_stock_update.py45CODE
LOW…eor/tests/e2e/product/utils/product_channel_listing.py69CODE
LOW…leor/tests/e2e/checkout/utils/checkout_email_update.py36CODE
LOWsaleor/tests/e2e/channel/utils/channel_create.py53CODE
LOWsaleor/tests/e2e/attributes/utils/create_attribute.py43CODE
LOW…or/tests/e2e/attributes/utils/attribute_bulk_create.py61CODE
LOW…eor/tests/e2e/transactions/utils/transaction_create.py32CODE
LOW…tests/e2e/transactions/utils/transaction_initialize.py113CODE
LOW…tests/e2e/transactions/utils/transaction_initialize.py139CODE
LOWsaleor/tests/e2e/promotions/utils/promotion_query.py27CODE
LOWsaleor/tests/e2e/promotions/utils/promotions_query.py65CODE
LOW…or/tests/e2e/promotions/utils/promotion_rule_update.py60CODE
LOW…ts/e2e/taxes/utils/tax_country_configuration_update.py57CODE
LOWsaleor/tests/e2e/vouchers/utils/voucher_update.py49CODE
LOW…or/tests/e2e/vouchers/utils/voucher_channel_listing.py63CODE
LOW…eor/tests/e2e/vouchers/utils/voucher_catalogues_add.py58CODE
LOWsaleor/tests/e2e/orders/utils/draft_order_update.py152CODE
LOWsaleor/tests/e2e/orders/utils/order_update.py49CODE
LOWsaleor/tests/e2e/orders/utils/order_bulk_create.py203CODE
LOW…r/tests/e2e/orders/utils/order_fulfill_add_tracking.py50CODE
LOWsaleor/tests/e2e/orders/utils/draft_order_complete.py123CODE
LOW…leor/tests/e2e/orders/utils/draft_order_bulk_delete.py28CODE
LOWsaleor/tests/e2e/account/utils/customer_bulk_update.py54CODE
LOWsaleor/tests/e2e/account/utils/staff_create.py42CODE
LOWsaleor/tests/e2e/account/utils/staff_update.py45CODE
LOWsaleor/tests/e2e/translations/utils.py65CODE
LOWsaleor/graphql/core/mutations.py160CODE
LOW…ment/mutations/transaction/transaction_event_report.py299CODE
LOW…payment/tests/mutations/test_transaction_initialize.py117CODE
LOW…ql/payment/tests/mutations/test_transaction_process.py152CODE
LOW…l/meta/tests/mutations/test_delete_private_metadata.py61CODE
LOW…l/meta/tests/mutations/test_delete_private_metadata.py78CODE
LOW…r/graphql/meta/tests/mutations/test_update_metadata.py61CODE
LOW…r/graphql/meta/tests/mutations/test_update_metadata.py85CODE
LOW…r/graphql/meta/tests/mutations/test_delete_metadata.py53CODE
11 more matches not shown…
Redundant / Tautological Comments54 hits · 55 pts
SeverityFileLineSnippetContext
LOW.claude/skills/filter-benchmark/analyze_query.py172 # Check if the planner uses different scan with seqscan offCOMMENT
LOWsaleor/settings.py838# Set this to `True` if you want to create default channel, warehouse, product type andCOMMENT
LOWsaleor/settings.py1082# Set None to route to the default queue, or a string value to use a separate oneCOMMENT
LOWsaleor/order/actions.py1365 # Check if line for order_line_id and stock_id does not exist in DB.COMMENT
LOWsaleor/order/tests/test_calculations.py1930 # Check if order was deletedCOMMENT
LOWsaleor/order/tests/test_calculations.py1934 # Check if prices are recalculated and returned in objectsCOMMENT
LOWsaleor/order/tests/test_calculations.py1981 # Check if prices are recalculated and returned in objectsCOMMENT
LOWsaleor/order/tests/test_calculations.py1994 # Check if database contains updated order by other requestsCOMMENT
LOWsaleor/core/tests/test_metadata_manager.py148 # Check if the key with the same value was overwrittenCOMMENT
LOWsaleor/core/db/connection.py44 # Check if we are already in an allow_writer block. If so we don't need to doCOMMENT
LOWsaleor/plugins/avatax/tests/test_avatax.py6789 # Set SKU to the same as the lines from the:COMMENT
LOWsaleor/plugins/openid_connect/plugin.py550 # Check if the token is created by this pluginCOMMENT
LOWsaleor/tests/e2e/utils.py29 # Check if all key-value pairs in body1 are present in body2COMMENT
LOWsaleor/tests/e2e/utils.py37 # Check if there are any extra key-value pairs in body2COMMENT
LOWsaleor/checkout/tests/test_calculations.py1439 # Check if checkout was deleted.COMMENT
LOWsaleor/checkout/tests/test_calculations.py1443 # Check if prices are recalculated and returned in info objects.COMMENT
LOWsaleor/checkout/tests/test_calculations.py1491 # Check if prices are recalculated and returned in info objects.COMMENT
LOWsaleor/checkout/tests/test_calculations.py1502 # Check if database contains updated checkout by other requests.COMMENT
LOWsaleor/checkout/tests/test_calculations.py1538 # Check if checkout was deleted.COMMENT
LOWsaleor/checkout/webhooks/exclude_shipping.py55 # Set cache to None as Checkout doesn't use cache flow anymoreCOMMENT
LOW…raphql/app/tests/test_app_by_token_loader_use_cache.py185 # Check if the token was removed from the cacheCOMMENT
LOW…raphql/app/tests/test_app_by_token_loader_use_cache.py219 # Check if the token was removed from the cacheCOMMENT
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py109 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py119 # Check if the attribute values were correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py304 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py313 # Check if the attribute values were correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py612 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py621 # Check if the attribute values were correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py709 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py718 # Check if the attribute values were correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py797 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py806 # Check if the attribute values were correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py845 # Check if the attribute was correctly createdSTRING
LOW⚡…hql/attribute/tests/mutations/test_attribute_create.py854 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py360 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py369 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py417 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py426 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py554 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py563 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1215 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1277 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1339 # Check if the attribute was correctly createdSTRING
LOW…raphql/attribute/tests/queries/test_attributes_sort.py92 # Assign attributes to the productSTRING
LOW…raphql/attribute/tests/queries/test_attributes_sort.py151 # Assign attributes to the productSTRING
LOW…phql/tax/mutations/tax_country_configuration_update.py78 # Check if only one default rate is provided (only one item without the taxCOMMENT
LOW…/product/tests/mutations/test_product_media_reorder.py49 # Check if order has been changedSTRING
LOW…/product/tests/mutations/test_product_media_reorder.py79 # Check if order has not been changedSTRING
LOWsaleor/graphql/checkout/tests/test_checkout.py570 # Check if webhook was called with correct payloadSTRING
LOWsaleor/graphql/checkout/tests/test_checkout.py585 # Check if shipping methods are correctSTRING
LOW…eor/graphql/account/mutations/staff/customer_create.py82 # Verify if object already exists in DB.COMMENT
LOWsaleor/warehouse/models.py238 # Check if the ordered line quantities can be fulfilled using stock fromCOMMENT
LOW.github/workflows/check-migration-tasks.yml36 # Check if any new python file was added in a *migrations/tasks/ directoryCOMMENT
LOW.github/workflows/check-migration-tasks.yml43 # Check if celeryconf.py is in the list of all changed filesCOMMENT
Over-Commented Block78 hits · 52 pts
SeverityFileLineSnippetContext
LOWsaleor/settings.py921#COMMENT
LOWsaleor/patch_local.py21 # just the plain thread local (i.e, "global withinCOMMENT
LOWsaleor/order/tests/test_tasks.py681 # 4. create draft order and associate it with the code-123COMMENT
LOWsaleor/asgi/asgi_handler.py121 # Tasks need to be cleared to prevent cycles is memory. Task `self.listen_for_disconnect(receive)` alwaysCOMMENT
LOWsaleor/page/tests/test_search.py101 # givenCOMMENT
LOWsaleor/core/cleaners/html.py21COMMENT
LOWsaleor/auth/__init__.py1# This module was created to be able to handle the migration process after we moveCOMMENT
LOWsaleor/plugins/base_plugin.py161 #COMMENT
LOWsaleor/plugins/base_plugin.py181 # set password is requested.COMMENT
LOWsaleor/plugins/base_plugin.py201 # Note: this method is deprecated and will be removed in a future release.COMMENT
LOWsaleor/plugins/base_plugin.py221 address_created: Callable[["Address", None], None]COMMENT
LOWsaleor/plugins/base_plugin.py241 # Overwrite this method if you need to trigger specific logic after an app isCOMMENT
LOWsaleor/plugins/base_plugin.py261 #COMMENT
LOWsaleor/plugins/base_plugin.py281 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py301COMMENT
LOWsaleor/plugins/base_plugin.py321 #COMMENT
LOWsaleor/plugins/base_plugin.py441 # Overwrite this method if you need to trigger specific logic after a category isCOMMENT
LOWsaleor/plugins/base_plugin.py461 #COMMENT
LOWsaleor/plugins/base_plugin.py481 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py501COMMENT
LOWsaleor/plugins/base_plugin.py521 checkout_created: Callable[["Checkout", Any, None], Any]COMMENT
LOWsaleor/plugins/base_plugin.py541 # Trigger when checkout is fully authorized with transactions.COMMENT
LOWsaleor/plugins/base_plugin.py561 # Overwrite this method if you need to trigger specific logic after a collection isCOMMENT
LOWsaleor/plugins/base_plugin.py581 #COMMENT
LOWsaleor/plugins/base_plugin.py601 #COMMENT
LOWsaleor/plugins/base_plugin.py621 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py641 # Overwrite this method if you need to trigger specific logic after a customerCOMMENT
LOWsaleor/plugins/base_plugin.py681 tuple[Union["User", None], dict],COMMENT
LOWsaleor/plugins/base_plugin.py701COMMENT
LOWsaleor/plugins/base_plugin.py781 #COMMENT
LOWsaleor/plugins/base_plugin.py801 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py821COMMENT
LOWsaleor/plugins/base_plugin.py841 #COMMENT
LOWsaleor/plugins/base_plugin.py921 "PaymentMethodTokenizationResponseData",COMMENT
LOWsaleor/plugins/base_plugin.py941COMMENT
LOWsaleor/plugins/base_plugin.py961 #COMMENT
LOWsaleor/plugins/base_plugin.py981 notify: Callable[["NotifyEventType", Callable[[], dict], Any], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1001 # Trigger when order is confirmed by staff.COMMENT
LOWsaleor/plugins/base_plugin.py1021 # Note: This method is deprecated and will be removed in a future release.COMMENT
LOWsaleor/plugins/base_plugin.py1041 order_paid: Callable[["Order", Any, None], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1061 # Trigger when order is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1081 # Overwrite this method if you need to trigger specific logic when an orderCOMMENT
LOWsaleor/plugins/base_plugin.py1101 #COMMENT
LOWsaleor/plugins/base_plugin.py1121 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py1141COMMENT
LOWsaleor/plugins/base_plugin.py1221 #COMMENT
LOWsaleor/plugins/base_plugin.py1241 # item metadata is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1261 # Note: This method is deprecated and will be removed in a future release.COMMENT
LOWsaleor/plugins/base_plugin.py1281 product_type_created: Callable[["ProductType", Any], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1301 # Trigger when product media is created.COMMENT
LOWsaleor/plugins/base_plugin.py1321 # Overwrite this method if you need to trigger specific logic after a product mediaCOMMENT
LOWsaleor/plugins/base_plugin.py1341 #COMMENT
LOWsaleor/plugins/base_plugin.py1361 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py1381 # Overwrite this method if you need to trigger specific logic after a productCOMMENT
LOWsaleor/plugins/base_plugin.py1401 # a sale is deleted.COMMENT
LOWsaleor/plugins/base_plugin.py1421 # is created.COMMENT
LOWsaleor/plugins/base_plugin.py1441 # Note: This method is deprecated and will be removed in a future release.COMMENT
LOWsaleor/plugins/base_plugin.py1461 promotion_ended: Callable[["Promotion", Any], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1481 # Trigger when promotion rule is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1501 # Overwrite this method if you need to trigger specific logic after a shippingCOMMENT
18 more matches not shown…
Cross-Language Confusion6 hits · 48 pts
SeverityFileLineSnippetContext
HIGH⚡saleor/app/tests/test_validators.py37 ("3.8 - 3.9 || ~3.10.2 || 3.11.* || 3.12.x", "3.12.1", True),CODE
HIGH⚡saleor/tax/utils.py331 # the name is non-null). This is a valid case when recalculating shipping priceCOMMENT
HIGH⚡saleor/tax/utils.py332 # and the tax class is null, because it was removed from the system.COMMENT
HIGHsaleor/product/managers.py200 # then consider the concatenated values as empty (non-null).COMMENT
HIGHsaleor/graphql/shop/filters.py9 "If the argument is not provided (null), return all countries."CODE
HIGHsaleor/graphql/tax/types.py195 "Tax rate for a country. When tax class is null, it represents the default "CODE
Decorative Section Separators6 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUM⚡…der/tests/test_fetch_order_prices_concurrent_update.py107# --------------------------------------------------------------------------------COMMENT
MEDIUM⚡…der/tests/test_fetch_order_prices_concurrent_update.py109# --------------------------------------------------------------------------------COMMENT
MEDIUM⚡…der/tests/test_fetch_order_prices_concurrent_update.py162# --------------------------------------------------------------------------------COMMENT
MEDIUM⚡…der/tests/test_fetch_order_prices_concurrent_update.py164# --------------------------------------------------------------------------------COMMENT
MEDIUM…der/tests/test_fetch_order_prices_concurrent_update.py278# --------------------------------------------------------------------------------COMMENT
MEDIUM…der/tests/test_fetch_order_prices_concurrent_update.py285# --------------------------------------------------------------------------------COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsaleor/core/telemetry/trace.py84Start a new span and set it as the current span in the context. Args: name: The name of the span STRING
HIGHsaleor/core/telemetry/trace.py130Create a new span without setting it as current in the context. Args: name: The name of the span STRING
Verbosity Indicators11 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡…/e2e/account/account/test_staff_login_disabled_mode.py37 # Step 1: Assign permissions and prepare product type and categorySTRING
LOW…/e2e/account/account/test_staff_login_disabled_mode.py59 # Step 2: Login with ENABLED mode and create a product, fetch orders — should succeedSTRING
LOW⚡…/e2e/account/account/test_staff_login_disabled_mode.py79 # Step 3: Switch to DISABLED modeSTRING
LOW⚡…/e2e/account/account/test_staff_login_disabled_mode.py83 # Step 4: Try to create a product and fetch orders — should fail (user is not authenticated)STRING
LOW…/e2e/account/account/test_staff_login_disabled_mode.py98 # Step 5: Switch back to ENABLED mode — should succeed againSTRING
LOW⚡…ccount/account/test_staff_login_customers_only_mode.py37 # Step 1: Assign permissions and prepare product type and categorySTRING
LOW…ccount/account/test_staff_login_customers_only_mode.py59 # Step 2: Login with ENABLED mode and create a product, fetch orders — should succeedSTRING
LOW⚡…ccount/account/test_staff_login_customers_only_mode.py79 # Step 3: Switch to CUSTOMERS_ONLY modeSTRING
LOW⚡…ccount/account/test_staff_login_customers_only_mode.py83 # Step 4: Try to create a product and fetch orders — should failSTRING
LOW…ccount/account/test_staff_login_customers_only_mode.py94 # Step 5: Switch back to ENABLED mode — should succeed againSTRING
LOWsaleor/checkout/complete_checkout.py1932 # As payment processing might take a while, we need to check if the paymentCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsaleor/graphql/app/types.py219 # Resolve if app from context is the same as requested appCOMMENT
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsaleor/order/fetch.py115 """Fetch the necessary order lines info in order to recalculate its prices.STRING
LOWsaleor/core/tests/test_view.py81 # When DEBUG=False, it should just return HTTP 404COMMENT
LOW…r/graphql/account/mutations/account/confirm_account.py131 # log a fatal error so someone can look into and just return "Invalid password"COMMENT
MEDIUMsaleor/static/populatedb_data.json9056 "text": "3 We enable developers to <a href=\"https://docs.saleor.io/developer/extending/apps/overview\">exCODE