Repository Analysis

saleor/saleor

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

20.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of saleor/saleor, a Python project with 23,084 GitHub stars. SynthScan v2.0 examined 805,849 lines of code across 2998 source files, recording 17387 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 20.4 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

20.4
Adjusted Score
20.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
23.1K
Stars
Python
Language
805.8K
Lines of Code
3.0K
Files
17.4K
Pattern Hits
2026-07-14
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 308HIGH 105MEDIUM 48LOW 16926

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 17387 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers13988 hits · 9465 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md279def test_apps_for_federation_query_count(CODE
LOWAGENTS.md136def my_model_qs_select_for_update() -> QuerySet[MyModel]:CODE
LOWCLAUDE.md136def 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.py595def generate_customer_payload(CODE
LOWsaleor/webhook/payloads.py634def generate_collection_payload(CODE
LOWsaleor/webhook/payloads.py672def serialize_product_channel_listing_payload(channel_listings):CODE
LOWsaleor/webhook/payloads.py694def _get_charge_taxes_for_product(product: "Product") -> bool:CODE
LOWsaleor/webhook/payloads.py752def generate_product_deleted_payload(CODE
LOWsaleor/webhook/payloads.py783def generate_product_variant_listings_payload(variant_channel_listings):CODE
LOWsaleor/webhook/payloads.py800def generate_product_variant_media_payload(product_variant):CODE
LOWsaleor/webhook/payloads.py816def generate_product_variant_payload(CODE
LOWsaleor/webhook/payloads.py855def generate_product_variant_stocks_payload(product_variant: "ProductVariant"):CODE
LOWsaleor/webhook/payloads.py861def generate_fulfillment_lines_payload(fulfillment: Fulfillment):CODE
LOWsaleor/webhook/payloads.py936def generate_fulfillment_payload(CODE
LOWsaleor/webhook/payloads.py1014def _generate_refund_data_payload(data):CODE
13928 more matches not shown…
Hallucination Indicators308 hits · 3095 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.py3from 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.py1272 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
CRITICALsaleor/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/sendgrid/plugin.py5from django.core.exceptions import ValidationErrorCODE
CRITICALsaleor/plugins/sendgrid/tests/test_plugin.py6from 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.py12from 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/braintree/tests/test_errors.py11from 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.py10from 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/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
248 more matches not shown…
Structural Annotation Overuse861 hits · 1388 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
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py91 # Step 1 - create gift cardCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py95 # Step 2 - prepare channel and productCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py100 # Step 3 - create checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py112 # Step 4 - add gift card to checkout with addPromoCodeCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py115 # Step 5 - add gift card to checkout via transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py123 # Step 6 - complete checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py126 # Step 7 - check gift card fundsCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py136 # Step 8 - check order payment status and gift card transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py162 # Step 1 - create gift cardCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py166 # Step 2 - prepare channel and productCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py171 # Step 3 - create checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py183 # Step 4 - add gift card to checkout via transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py191 # Step 5 - complete checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py214 # Step 6 - check gift card fundsCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py222 # Step 7 - check order payment status and gift card transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py248 # Step 1 - create gift cardCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py252 # Step 2 - prepare channel and productCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py257 # Step 3 - create checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py269 # Step 4 - add gift card to checkout via transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py277 # Step 5 - complete checkoutCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py300 # Step 6 - check gift card fundsCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py305 # Step 7 - check order payment status and gift card transactionCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py331 # Step 1 - create gift cardCOMMENT
LOWsaleor/tests/e2e/gift_cards/test_gift_cards.py335 # Step 2 - prepare channel and productCOMMENT
LOWsaleor/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
LOWsaleor/tests/e2e/product/test_create_simple_product.py64 # Step 1 - Create product with attributeCOMMENT
LOWsaleor/tests/e2e/product/test_create_simple_product.py73 # Step 2 - Update product channel listingCOMMENT
LOWsaleor/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
801 more matches not shown…
Unused Imports1352 hits · 1161 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.py26CODE
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
1292 more matches not shown…
Cross-File Repetition96 hits · 480 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/plugins/avatax/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/plugins/sendgrid/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/payment/gateways/braintree/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/payment/gateways/dummy/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/payment/gateways/dummy_credit_card/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/payment/gateways/razorpay/plugin.py0deprecated. this plugin is deprecated and will be removed in future version.STRING
HIGHsaleor/plugins/sendgrid/tasks.py0send an invoice to user of related order with url to download it.STRING
HIGHsaleor/plugins/user_email/tasks.py0send an invoice to user of related order with url to download it.STRING
HIGHsaleor/invoice/notifications.py0send an invoice to user of related order with url to download it.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/filters.py0build an expression to filter variants based on their references to collections. - if `contains_all` is provided, only vSTRING
HIGHsaleor/graphql/product/filters/product_variant.py0build an expression to filter variants based on their references to collections. - if `contains_all` is provided, only vSTRING
HIGHsaleor/graphql/product/filters/product_attributes.py0build an expression to filter variants based on their references to collections. - if `contains_all` is provided, only vSTRING
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
36 more matches not shown…
Fake / Example Data189 hits · 172 pts
SeverityFileLineSnippetContext
LOWsaleor/webhook/tests/test_payment_webhook_utils.py157 "name": "John Doe",CODE
LOWsaleor/core/cleaners/tests/test_urls.py82 ("mailto:%22not%40me%22@example.org", None),CODE
LOWsaleor/core/cleaners/tests/test_urls.py83 ("mailto:%22oh%5C%5Cno%22@example.org", None),CODE
LOWsaleor/core/cleaners/tests/test_urls.py85 "mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org",CODE
LOWsaleor/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
LOWsaleor/core/tests/test_search.py90 assert parse_search_query("user@example.com") == "user@example.com:*"CODE
LOWsaleor/core/tests/test_core.py73 "email": "admin@example.com",CODE
LOWsaleor/core/management/commands/populatedb.py86 superuser_email = "admin@example.com"CODE
LOWsaleor/core/utils/anonymization.py40 fake_user = create_fake_user(user_password=None, save=False, generate_id=True)CODE
LOWsaleor/core/utils/anonymization.py42 fake_user.save = _fake_saveCODE
LOWsaleor/core/utils/anonymization.py43 return fake_userCODE
LOWsaleor/core/utils/anonymization.py59 fake_user = generate_fake_user()CODE
LOWsaleor/core/utils/anonymization.py60 anonymized_order.user = fake_userCODE
LOWsaleor/core/utils/anonymization.py61 anonymized_order.user_email = fake_user.emailCODE
LOWsaleor/core/utils/anonymization.py78 fake_user = generate_fake_user()CODE
LOWsaleor/core/utils/anonymization.py79 anonymized_checkout.user = fake_userCODE
LOWsaleor/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.py118 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
LOWsaleor/plugins/sendgrid/tests/test_tasks.py154 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py161 "new_email": "user@example.com",CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py45 "recipient_email": "user@example.com",CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py89 recipient_email = "admin@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py118 recipient_email = "admin@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py195 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py234 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py267 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py301 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py348 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py394 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py525 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py570 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py611 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py652 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py695 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py737 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py782 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py828 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py873 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/sendgrid/tests/test_tasks.py916 recipient_email = "user@example.com"CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py787 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py795 assert user.email == "test@example.org"CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py771 "email": "test@example.org",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py835 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py880 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py924 access_token="fake-token",CODE
LOWsaleor/plugins/openid_connect/tests/test_utils.py977 access_token="fake-token",CODE
129 more matches not shown…
Modern Structural Boilerplate156 hits · 158 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/views.py31logger = 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.py67logger = 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.py33def set_user_search_document_values(updated_count: int = 0) -> None:CODE
LOWsaleor/core/search_tasks.py123def set_product_search_document_values(updated_count: int = 0) -> 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.py32logger = logging.getLogger(__name__)CODE
LOWsaleor/app/actions.py16logger = logging.getLogger(__name__)CODE
LOWsaleor/app/installation_utils.py35logger = logging.getLogger(__name__)CODE
LOW…bute/management/commands/update_attribute_file_urls.py12logger = logging.getLogger(__name__)CODE
LOWsaleor/attribute/models/__init__.py15__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
LOWsaleor/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/sendgrid/tasks.py16logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/sendgrid/plugin.py31logger = logging.getLogger(__name__)CODE
LOWsaleor/plugins/openid_connect/utils.py60logger = 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/razorpay/__init__.py27logger = 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
96 more matches not shown…
Deep Nesting120 hits · 110 pts
SeverityFileLineSnippetContext
LOW.claude/skills/filter-benchmark/analyze_query.py67CODE
LOWsaleor/webhook/utils.py162CODE
LOWsaleor/webhook/payloads.py1082CODE
LOWsaleor/webhook/payloads.py1116CODE
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.py163CODE
LOWsaleor/order/actions.py864CODE
LOWsaleor/order/actions.py1451CODE
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.py290CODE
LOWsaleor/attribute/models/base.py530CODE
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.py1561CODE
LOWsaleor/checkout/utils.py179CODE
LOWsaleor/checkout/payment_utils.py16CODE
LOWsaleor/checkout/payment_utils.py42CODE
LOWsaleor/checkout/base_calculations.py264CODE
LOWsaleor/discount/utils/voucher.py512CODE
LOWsaleor/graphql/schema_printer.py375CODE
LOWsaleor/graphql/views.py339CODE
LOWsaleor/graphql/webhook/mutations/webhook_trigger.py159CODE
LOWsaleor/graphql/order/utils.py95CODE
LOWsaleor/graphql/order/utils.py173CODE
LOWsaleor/graphql/order/mutations/order_lines_create.py71CODE
LOWsaleor/graphql/order/mutations/draft_order_complete.py118CODE
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
LOWsaleor/webhook/observability/utils.py101 except Exception:CODE
LOWsaleor/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
LOWsaleor/core/management/commands/remove_invalid_files.py165 except Exception:CODE
LOWsaleor/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
LOWsaleor/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.py292 except Exception as e:CODE
MEDIUMsaleor/app/manifest_validations.py75def clean_manifest_url(manifest_url):CODE
LOWsaleor/app/actions.py69 except Exception:CODE
LOWsaleor/app/installation_utils.py49 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.py599 except Exception:CODE
MEDIUMsaleor/plugins/openid_connect/utils.py125def 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.py506 except Exception as e:CODE
MEDIUMsaleor/graphql/order/filters.py108def get_payment_id_from_query(value):CODE
LOWsaleor/graphql/order/filters.py111 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
LOWsaleor/graphql/checkout/filters.py42 except Exception:CODE
LOWsaleor/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.py167 except Exception:CODE
LOW…/graphql/warehouse/bulk_mutations/stock_bulk_update.py141 except Exception:CODE
1 more matches not shown…
Self-Referential Comments29 hits · 78 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/core/utils/__init__.py164 # Create a BytesIO object to store the file contentCOMMENT
MEDIUMsaleor/core/utils/__init__.py170 # Create a Django File object from the BytesIO objectCOMMENT
MEDIUMsaleor/graphql/views.py86 # 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.py1078 # Create a second product type that shares the same attributeSTRING
MEDIUM…aphql/attribute/tests/queries/test_attribute_filter.py1152 # Create a second product type that shares the same attributeSTRING
MEDIUM…raphql/attribute/tests/queries/test_attribute_where.py1497 # Create a second product type that shares the same attributeSTRING
MEDIUM…raphql/attribute/tests/queries/test_attribute_where.py1571 # Create a second product type that shares the same attributeSTRING
MEDIUM…aphql/product/tests/test_product_sorting_attributes.py582 # Create a product with a valueCOMMENT
MEDIUM…aphql/product/tests/test_product_sorting_attributes.py591 # Create a product having the same product type but no attribute dataCOMMENT
MEDIUM…aphql/product/tests/test_product_sorting_attributes.py596 # 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.py472 # Create the checkout objectCOMMENT
MEDIUM…tests/mutations/test_checkout_complete_with_payment.py5535 # Create a dummy payment to chargeCOMMENT
MEDIUMsaleor/account/models.py304 # This method is overridden to accept perm as BasePermissionEnumCOMMENT
MEDIUMsaleor/account/models.py315 # This method is overridden to accept perm as BasePermissionEnumCOMMENT
AI Structural Patterns72 hits · 68 pts
SeverityFileLineSnippetContext
LOWsaleor/webhook/payloads.py629CODE
LOWsaleor/webhook/payloads.py656CODE
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/sendgrid/tests/conftest.py9CODE
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
LOWsaleor/tests/e2e/product/utils/product_type.py34CODE
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.py116CODE
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
12 more matches not shown…
Redundant / Tautological Comments56 hits · 54 pts
SeverityFileLineSnippetContext
LOW.claude/skills/filter-benchmark/analyze_query.py172 # Check if the planner uses different scan with seqscan offCOMMENT
LOWsaleor/settings.py831# Set this to `True` if you want to create default channel, warehouse, product type andCOMMENT
LOWsaleor/settings.py1060# 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.py1929 # Check if order was deletedCOMMENT
LOWsaleor/order/tests/test_calculations.py1933 # Check if prices are recalculated and returned in objectsCOMMENT
LOWsaleor/order/tests/test_calculations.py1980 # Check if prices are recalculated and returned in objectsCOMMENT
LOWsaleor/order/tests/test_calculations.py1993 # 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.py112 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py122 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py648 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py657 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py745 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py754 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py833 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py842 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py977 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py986 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py316 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py325 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py379 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py388 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py443 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py452 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py590 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py599 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py881 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py894 # Check if the attribute values were correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1507 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1569 # Check if the attribute was correctly createdSTRING
LOW…hql/attribute/tests/mutations/test_attribute_create.py1631 # 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.py80 # 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.yml32 # Check if any new python file was added in a *migrations/tasks/ directoryCOMMENT
LOW.github/workflows/check-migration-tasks.yml39 # Check if celeryconf.py is in the list of all changed filesCOMMENT
Over-Commented Block76 hits · 50 pts
SeverityFileLineSnippetContext
LOWsaleor/settings.py901GRAPHQL_QUERY_MAX_COMPLEXITY = int(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/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.py661 external_verify: Callable[COMMENT
LOWsaleor/plugins/base_plugin.py681 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py761 # Overwrite this method if you need to trigger specific logic after a gift card isCOMMENT
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 [dict, InitializedPaymentResponse | None], InitializedPaymentResponseCOMMENT
LOWsaleor/plugins/base_plugin.py921 # Webhook-related functionality will be moved from the plugin to core modules.COMMENT
LOWsaleor/plugins/base_plugin.py941COMMENT
LOWsaleor/plugins/base_plugin.py961 #COMMENT
LOWsaleor/plugins/base_plugin.py981 order_cancelled: Callable[["Order", Any, None], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1001 # created.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_refunded: Callable[["Order", Any, None], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1061 # Trigger when order metadata is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1081 # Overwrite this method if you need to trigger specific logic when a page isCOMMENT
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 # created.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_deleted: Callable[["ProductType", Any, None], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1301 # Trigger when product media is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1321 # Overwrite this method if you need to trigger specific logic after a productCOMMENT
LOWsaleor/plugins/base_plugin.py1341 #COMMENT
LOWsaleor/plugins/base_plugin.py1361 # Trigger when product variant metadata is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1381 # Trigger when sale is created.COMMENT
LOWsaleor/plugins/base_plugin.py1401 # a sale is updated.COMMENT
LOWsaleor/plugins/base_plugin.py1421 # a promotion is deleted.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_rule_created: Callable[["PromotionRule", Any], Any]COMMENT
LOWsaleor/plugins/base_plugin.py1481 # Trigger when shipping price is created.COMMENT
LOWsaleor/plugins/base_plugin.py1501 # Overwrite this method if you need to trigger specific logic after a shippingCOMMENT
LOWsaleor/plugins/base_plugin.py1521 #COMMENT
16 more matches not shown…
Cross-Language Confusion6 hits · 48 pts
SeverityFileLineSnippetContext
HIGHsaleor/app/tests/test_validators.py37 ("3.8 - 3.9 || ~3.10.2 || 3.11.* || 3.12.x", "3.12.1", True),CODE
HIGHsaleor/tax/utils.py331 # the name is non-null). This is a valid case when recalculating shipping priceCOMMENT
HIGHsaleor/tax/utils.py332 # and the tax class is null, because it was removed from the system.COMMENT
HIGHsaleor/product/managers.py188 # 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
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.py1903 # 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.py212 # Resolve if app from context is the same as requested appCOMMENT
AI Slop Vocabulary3 hits · 4 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
MEDIUMsaleor/static/populatedb_data.json9630 "text": "3 We enable developers to <a href=\"https://docs.saleor.io/developer/extending/apps/overview\">exCODE