AI Slop Code Risk Monitor

solidusio/solidus

SlopCodeMonitor badge for solidusio/solidus Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

2.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for solidusio/solidus, a Ruby project with 5,348 GitHub stars. SynthScan examined 244,782 lines of code across 2642 source files, recording 528 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 2.8 (Low pattern signal); it is not an authorship estimate.

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

2.8
Adjusted Signal
2.8
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
5.3K
Stars
Ruby
Language
244.8K
Lines of Code
2.6K
Files
528
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 9.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.5/100 · LOW

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

Agent Over-Engineering Ratio 2.4/100 · LOW

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

PR Review Velocity Impact 12.5/100 · LOW

Which changes need focused human review? 528 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 6HIGH 0MEDIUM 37LOW 485

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 528 distinct pattern matches across 11 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.

Over-Commented Block249 hits · 248 pts
SeverityFileLineSnippetContext
LOW.rubocop_todo.yml1# This configuration was generated byCOMMENT
LOWlegacy_promotions/app/models/spree/promotion_action.rb21 # Updates the state of the order or performs some other action depending onCOMMENT
LOW…spree/promotion/actions/create_quantity_adjustments.rb21 # colours: red, blue, and white.COMMENT
LOW…spree/promotion/actions/create_quantity_adjustments.rb41 # *Reasoning:* We have a total quantity of 4. However, we only apply theCOMMENT
LOW…s/app/models/spree/promotion/rules/minimum_quantity.rb1# frozen_string_literal: trueCOMMENT
LOW…s/app/models/spree/promotion/rules/minimum_quantity.rb21 # @param promotable [Spree::Order,Spree::LineItem]COMMENT
LOW…/app/models/spree/permission_sets/promotion_display.rb1# frozen_string_literal: trueCOMMENT
LOW…p/models/spree/permission_sets/promotion_management.rb1# frozen_string_literal: trueCOMMENT
LOW…_promotions/app/models/spree/promotion_handler/cart.rb1# frozen_string_literal: trueCOMMENT
LOW…pp/assets/config/solidus_legacy_promotions/manifest.js1//= link solidus_legacy_promotions/promotions.cssCOMMENT
LOW…app/assets/javascripts/spree/backend/edit_promotion.js1//= require_tree ./templatesCOMMENT
LOW…motions/lib/solidus_legacy_promotions/configuration.rb41COMMENT
LOWstorefront/.rubocop_todo.yml1# This configuration was generated byCOMMENT
LOWstorefront/.rubocop_todo.yml41# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.COMMENT
LOWstorefront/.rubocop_todo.yml181# Cop supports --auto-correct.COMMENT
LOW…lates/app/assets/config/solidus_storefront_manifest.js1//= link solidus_storefront.jsCOMMENT
LOW…templates/app/assets/javascripts/solidus_storefront.js1// Placeholder manifest file.COMMENT
LOWstorefront/templates/app/helpers/layout_helper.rb1module LayoutHelperCOMMENT
LOWcore/app/models/spree/variant.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/variant.rb341COMMENT
LOWcore/app/models/spree/user_last_url_storer.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/variant_property_rule.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/variant_property_rule.rb21 has_many :option_values, through: :conditionsCOMMENT
LOWcore/app/models/spree/return_item.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/order_merger.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/order_merger.rb21 def initialize(order)COMMENT
LOWcore/app/models/spree/order_merger.rb121 # Handle an error from saving the `line_item`COMMENT
LOWcore/app/models/spree/order_taxation.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/tax_rate.rb41 scope :active, -> doCOMMENT
LOWcore/app/models/spree/tax_rate.rb61 # 21% inclusive - "Clothing" - SpainCOMMENT
LOWcore/app/models/spree/payment_create.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/order_shipping.rb41 shipped_at: Time.current,COMMENT
LOWcore/app/models/spree/mergeable_orders_finder.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/calculator.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/calculator.rb21 # Spree::ShippingRate)COMMENT
LOWcore/app/models/spree/fulfilment_changer.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/product.rb181COMMENT
LOWcore/app/models/spree/product.rb201 # Poor man's full text search.COMMENT
LOWcore/app/models/spree/simple_order_contents.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/money.rb41 @money = Monetize.from_string(amount, currency)COMMENT
LOWcore/app/models/spree/reimbursement.rb21 before_create :calculate_totalCOMMENT
LOWcore/app/models/spree/order.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/payment_method.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/payment_method.rb81COMMENT
LOWcore/app/models/spree/payment_method.rb121 def payment_source_classCOMMENT
LOWcore/app/models/spree/payment_method.rb161COMMENT
LOWcore/app/models/spree/order_updater.rb101 "partial"COMMENT
LOWcore/app/models/spree/in_memory_order_updater.rb61 alias_method :update, :recalculateCOMMENT
LOWcore/app/models/spree/order/number_generator.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/order/payments.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/permission_sets/base.rb1# frozen_string_literal: trueCOMMENT
LOW…e/app/models/spree/permission_sets/default_customer.rb1# frozen_string_literal: trueCOMMENT
LOW…e/app/models/spree/permission_sets/default_customer.rb21 # - TaxonomiesCOMMENT
LOW…dels/spree/permission_sets/configuration_management.rb1# frozen_string_literal: trueCOMMENT
LOW…re/app/models/spree/permission_sets/product_display.rb1# frozen_string_literal: trueCOMMENT
LOW…e/app/models/spree/permission_sets/order_management.rb1# frozen_string_literal: trueCOMMENT
LOW…app/models/spree/permission_sets/product_management.rb1# frozen_string_literal: trueCOMMENT
LOW…/models/spree/permission_sets/configuration_display.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/permission_sets/order_display.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/core/state_machines/payment.rb1# frozen_string_literal: trueCOMMENT
189 more matches not shown…
Hyper-Verbose Identifiers117 hits · 121 pts
SeverityFileLineSnippetContext
LOW…tions/app/mailers/spree/promotion_code_batch_mailer.rb5 def promotion_code_batch_finished(promotion_code_batch)CODE
LOW…tions/app/mailers/spree/promotion_code_batch_mailer.rb10 def promotion_code_batch_errored(promotion_code_batch)CODE
LOW…pree_calculator_returns_default_refund_amount_patch.rb7 def weighted_order_adjustment_amount(inventory_unit)CODE
LOW…/models/solidus_legacy_promotions/spree_order_patch.rb16 def apply_shipping_promotions(_event = nil)CODE
LOWlegacy_promotions/app/models/spree/promotion_rule.rb49 def eligibility_error_message(key, options = {})CODE
LOWlegacy_promotions/app/models/spree/promotion.rb258 def eligibility_excluded_orders(promotable)CODE
LOW…spree/promotion/actions/create_quantity_adjustments.rb97 def total_applicable_quantity(line_items)CODE
LOW…spree/promotion/actions/create_quantity_adjustments.rb110 def set_line_item_action_quantity(quantity, line_item)CODE
LOW…romotions/app/models/spree/promotion_handler/coupon.rb92 def set_promotion_eligibility_error_code(promotion)CODE
LOW…promotions/app/helpers/spree/promotion_rules_helper.rb5 def options_for_promotion_rule_types(promotion)CODE
LOW…/spec/features/backend/promotions/product_rule_spec.rb14 def add_promotion_rule_of_type(type)CODE
LOW…ons/spec/models/spree/promotion_handler/coupon_spec.rb17 def expect_adjustment_creation(adjustable:, promotion:, promotion_code: nil)CODE
LOWstorefront/templates/app/mailers/user_mailer.rb4 def reset_password_instructions(user, token, *_args)CODE
LOWstorefront/templates/app/mailers/user_mailer.rb10 def confirmation_instructions(user, token, _opts = {})CODE
LOW…/templates/app/controllers/checkout_base_controller.rb55 def rescue_from_spree_gateway_error(exception)CODE
LOW…lates/app/controllers/user_confirmations_controller.rb6 def after_confirmation_path_for(resource_name, resource)CODE
LOW…efront/templates/app/helpers/product_options_helper.rb4 def product_variants_with_options(product)CODE
LOWstorefront/templates/app/helpers/checkout_helper.rb4 def partial_name_with_fallback(prefix, partial_name, fallback_name = "default")CODE
LOWstorefront/templates/spec/system/coupon_code_spec.rb17 def create_basic_coupon_promotion(code)CODE
LOW…/support/solidus_storefront/system/checkout_helpers.rb45 def fill_addresses_fields_with(address)CODE
LOW…/support/solidus_storefront/system/checkout_helpers.rb78 def find_existing_payment_radio(wallet_source_id)CODE
LOWcore/app/mailers/spree/order_mailer.rb21 def inventory_cancellation_email(order, inventory_units, resend = false)CODE
LOWcore/app/models/spree/variant.rb309 def price_difference_from_master(pricing_options = Spree::Config.default_pricing_options)CODE
LOWcore/app/models/spree/refund.rb32 def total_amount_reimbursed_for(reimbursement)CODE
LOWcore/app/models/spree/order_inventory.rb59 def determine_target_shipment(quantity)CODE
LOWcore/app/models/spree/return_item.rb134 def eligible_exchange_variants(stock_locations = nil)CODE
LOWcore/app/models/spree/return_item.rb202 def sibling_intended_for_exchange(status)CODE
LOWcore/app/models/spree/shipment.rb308 def update_attributes_and_order(params = {})CODE
LOWcore/app/models/spree/unit_cancel.rb37 def weighted_line_item_amount(line_item)CODE
LOWcore/app/models/spree/payment_create.rb86 def build_from_payment_source(payment_source)CODE
LOWcore/app/models/spree/reimbursement_performer.rb33 def calculate_reimbursement_types(reimbursement)CODE
LOWcore/app/models/spree/product.rb219 def variants_and_option_values_for(pricing_options = Spree::Config.default_pricing_options)CODE
LOWcore/app/models/spree/product.rb232 def variant_option_values_by_option_type(variant_scope = nil)CODE
LOWcore/app/models/spree/product.rb288 def find_variant_property_rule(option_value_ids)CODE
LOWcore/app/models/spree/simple_order_contents.rb113 def grab_line_item_by_variant(variant, raise_error = false, options = {})CODE
LOWcore/app/models/spree/reimbursement.rb57 def build_from_customer_return(customer_return)CODE
LOWcore/app/models/spree/store_credit.rb223 def create_credit_record_params(amount)CODE
LOWcore/app/models/spree/order.rb184 def register_line_item_comparison_hook(hook)CODE
LOWcore/app/models/spree/order.rb363 def find_line_item_by_variant(variant, options = {})CODE
LOWcore/app/models/spree/order.rb513 def create_shipments_for_line_item(line_item)CODE
LOWcore/app/models/spree/order.rb723 def validate_payments_attributes(attributes)CODE
LOWcore/app/models/spree/calculator/default_tax.rb54 def sum_of_included_tax_rates(item)CODE
LOW⚡…dels/spree/calculator/returns/default_refund_amount.rb13 def weighted_order_adjustment_amount(inventory_unit)CODE
LOW⚡…dels/spree/calculator/returns/default_refund_amount.rb17 def weighted_line_item_amount(inventory_unit)CODE
LOW⚡…dels/spree/calculator/returns/default_refund_amount.rb21 def percentage_of_order_total(inventory_unit)CODE
LOWcore/app/models/spree/payment_method/credit_card.rb22 def reusable_sources_by_order(order)CODE
LOWcore/app/models/spree/address/name.rb21 def initialize_name_components(components)CODE
LOW…dels/spree/reimbursement_type/reimbursement_helpers.rb70 def sorted_eligible_refund_payments(payments)CODE
LOWcore/app/models/spree/variant/vat_price_generator.rb42 def find_or_initialize_price_by(country_iso, currency)CODE
LOWcore/app/models/spree/stock/estimator.rb28 def choose_default_shipping_rate(shipping_rates)CODE
LOWcore/app/models/spree/stock/inventory_unit_builder.rb17 def missing_units_for_line_item(line_item)CODE
LOWcore/app/models/spree/reimbursement/credit.rb15 def total_amount_reimbursed_for(reimbursement)CODE
LOW…odels/spree/reimbursement/reimbursement_type_engine.rb35 def calculate_reimbursement_type(return_item)CODE
LOWcore/app/models/concerns/spree/user_address_book.rb9 def find_first_by_address_values(address_attrs)CODE
LOWcore/app/models/concerns/spree/user_address_book.rb160 def mark_default_ship_address(address)CODE
LOWcore/app/models/concerns/spree/user_address_book.rb164 def mark_default_bill_address(address)CODE
LOWcore/app/models/concerns/spree/user_address_book.rb187 def remove_user_address_reference(address_id)CODE
LOW⚡core/app/models/concerns/spree/user_methods.rb96 def last_incomplete_spree_order(store: nil, only_frontend_viewable: true)CODE
LOW⚡core/app/models/concerns/spree/user_methods.rb106 def available_store_credit_total(currency:)CODE
LOW⚡core/app/models/concerns/spree/user_methods.rb112 def display_available_store_credit_total(currency:)CODE
57 more matches not shown…
Fake / Example Data105 hits · 115 pts
SeverityFileLineSnippetContext
LOW…motions/spec/features/solidus_admin/promotions_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOW…tions/spec/features/solidus_admin/orders/index_spec.rb10 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOW…orefront/templates/spec/requests/carts_ability_spec.rb22 patch cart_path, params: {order: {email: "foo@bar.com"}}CODE
LOW…quests/solidus_paypal_commerce_platform/orders_spec.rb80 address_line_1: "123 Main St",CODE
LOW…quests/solidus_paypal_commerce_platform/orders_spec.rb103 "address1" => "123 Main St",CODE
LOW…tes/spec/controllers/user_passwords_controller_spec.rb51 create(:user, email: "admin@example.com")CODE
LOW…tes/spec/controllers/user_passwords_controller_spec.rb80 post :create, params: {spree_user: {email: "admin@example.com"}}CODE
LOW…e/app/models/spree/payment_method/bogus_credit_card.rb26 preference :bogus_text, :text, default: "Lorem ipsum dolor sit amet"CODE
LOW…e/app/models/spree/payment_method/bogus_credit_card.rb26 preference :bogus_text, :text, default: "Lorem ipsum dolor sit amet"CODE
LOW⚡core/spec/models/spree/order_spec.rb2028 let(:bill_address) { create(:address, name: "John Doe") }CODE
LOW⚡core/spec/models/spree/order_spec.rb2029 let(:ship_address) { create(:address, name: "Jane Doe") }CODE
LOW⚡core/spec/models/spree/order_spec.rb2035 it { is_expected.to eq("John Doe") }CODE
LOW⚡core/spec/models/spree/order_spec.rb2040 it { is_expected.to eq("Jane Doe") }CODE
LOWcore/spec/models/spree/order/checkout_spec.rb107 order.email = "user@example.com"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb180 order.email = "user@example.com"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb260 order.email = "user@example.com"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb277 order.email = "user@example.com"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb371 user = create(:user, email: "solidus@example.org", bill_address: user_bill_address)CODE
LOWcore/spec/models/spree/order/checkout_spec.rb467 order.email = "solidus@example.org"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb539 order.email = "solidus@example.org"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb567 order.email = "solidus@example.org"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb597 order.email = "solidus@example.org"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb690 order.email = "user@example.com"CODE
LOWcore/spec/models/spree/order/checkout_spec.rb699 order.email = "user@example.com"CODE
LOWcore/spec/lib/spree/core/importer/order_spec.rb55 params = {email: "test@test.com",CODE
LOW⚡core/spec/helpers/products_helper_spec.rb120<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a ligula leo. Proin eu arcu at ipsum dapibus ullamcoCODE
LOW⚡core/spec/helpers/products_helper_spec.rb120<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a ligula leo. Proin eu arcu at ipsum dapibus ullamcoCODE
LOW⚡core/spec/helpers/products_helper_spec.rb122<li>Lorem ipsum dolor sit amet</li>CODE
LOW⚡core/spec/helpers/products_helper_spec.rb122<li>Lorem ipsum dolor sit amet</li>CODE
LOW⚡core/spec/helpers/products_helper_spec.rb123<li>Lorem ipsum dolor sit amet</li>CODE
LOW⚡core/spec/helpers/products_helper_spec.rb123<li>Lorem ipsum dolor sit amet</li>CODE
LOW…e/lib/spree/testing_support/factories/store_factory.rb8 mail_from_address { "solidus@example.org" }CODE
LOWadmin/spec/features/stock_items_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/properties_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/shipping_methods_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/return_reasons_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/product_spec.rb9 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/store_credit_reasons_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/taxonomies_spec.rb7 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/refund_reasons_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/roles_spec.rb7 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/store_credits_spec.rb6 let(:admin) { create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/tax_categories_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/reimbursement_types_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/payment_methods_spec.rb9 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/tax_rates_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/zones_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/shipping_categories_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/products_spec.rb8 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/option_types_spec.rb7 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/accounts_spec.rb7 user = create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/accounts_spec.rb22 user = create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/stores_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/users_spec.rb6 let(:admin) { create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/adjustment_reasons_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/stock_locations/form_spec.rb11 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/stock_locations/index_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/orders/show_spec.rb8 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/orders/show_spec.rb56 fill_in "Name", with: "John Doe"CODE
LOWadmin/spec/features/orders/show_spec.rb68 expect(page).to have_content("John Doe")CODE
45 more matches not shown…
Self-Referential Comments32 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMstorefront/template.rb179 # This file is always necessary in order to run frontend specs from extensionsCOMMENT
MEDIUM…front/templates/spec/solidus_storefront_spec_helper.rb27# Define the namespace for the helpers.COMMENT
MEDIUMcore/app/models/spree/order_merger.rb16 # Create the OrderMergerCOMMENT
MEDIUMcore/app/models/spree/order_taxation.rb10 # Create a new order taxation.COMMENT
MEDIUMcore/app/models/spree/tax_rate.rb97 # This method is used by Adjustment#update to recalculate the cost.COMMENT
MEDIUMcore/app/models/spree/unit_cancel.rb28 # This method is used by Adjustment#update to recalculate the cost.COMMENT
MEDIUMcore/app/models/spree/unauthorized_redirect_handler.rb12 # This method is responsible for handling unauthorized redirectsCOMMENT
MEDIUMcore/app/models/spree/payment_method.rb10 # This class is not meant to be instantiated. Always create instances ofCOMMENT
MEDIUMcore/app/models/spree/order_cancellations.rb3# This class represents all of the actions one can take to modify an Order after it is completeCOMMENT
MEDIUMcore/app/models/spree/tax/tax_location.rb13 # Create a new TaxLocation objectCOMMENT
MEDIUM…p/models/spree/wallet/add_payment_sources_to_wallet.rb3# This class is responsible for saving payment sources in the user's "wallet"COMMENT
MEDIUMcore/app/models/spree/wallet/default_payment_builder.rb3# This class is responsible for building a default payment on an order, using aCOMMENT
MEDIUMcore/app/models/spree/variant/price_selector.rb5 # This class is responsible for selecting a price for a variant given certain pricing options.COMMENT
MEDIUMcore/app/models/spree/store_selector/legacy.rb3# This class provides the old behaviour for finding a matching Spree::StoreCOMMENT
MEDIUMcore/app/models/spree/tax_calculator/shipping_rate.rb16 # Create a new tax calculator.COMMENT
MEDIUMcore/app/models/spree/tax_calculator/default.rb14 # Create a new tax calculator.COMMENT
MEDIUM…rs/spree/core/controller_helpers/payment_parameters.rb5 # This method handles the awkwardness of how the html forms are currentlyCOMMENT
MEDIUM⚡…rs/spree/core/controller_helpers/payment_parameters.rb66 # This method handles the awkwardness of how the html forms are currentlyCOMMENT
MEDIUMcore/spec/models/spree/permission_sets/base_spec.rb16 # Define a subclass that does not override privilegeCOMMENT
MEDIUMcore/spec/models/spree/permission_sets/base_spec.rb27 # Define a subclass that does not override categoryCOMMENT
MEDIUMcore/spec/models/spree/permission_sets/base_spec.rb38 # Define a subclass that correctly overrides privilege and categoryCOMMENT
MEDIUMcore/lib/spree/core.rb63 # This method is defined within the core gem on purpose.COMMENT
MEDIUMcore/lib/spree/preferences/configuration.rb131 # This method is a specialized version of {.preference} that generates aCOMMENT
MEDIUMadmin/lib/solidus_admin/install_tailwindcss.rb3# This file is a Rails app template and should be loaded with `bin/rails `.COMMENT
MEDIUMbackend/spec/spec_helper.rb17# This file is copied to ~/spec when you run 'ruby script/generate rspec'COMMENT
MEDIUM…pec/features/admin/orders/return_payment_state_spec.rb21 # Create a Return Authorization (select the Original Reimbursement type)COMMENT
MEDIUM…pec/features/admin/orders/return_payment_state_spec.rb29 # Create a Customer Return (select the item from 'Items in Return Authorizations')COMMENT
MEDIUMsample/spec/spec_helper.rb3# This file is copied to ~/spec when you run 'ruby script/generate rspec'COMMENT
MEDIUMsample/db/samples/reimbursements.rb26# Create a return authorizationCOMMENT
MEDIUMsample/db/samples/reimbursements.rb44# Create a customer return and mark it as receivedCOMMENT
MEDIUMapi/spec/spec_helper.rb17# This file is copied to spec/ when you run 'rails generate rspec:install'COMMENT
MEDIUMapi/spec/requests/spree/api/stock_items_spec.rb115 # Creating a variant also creates stock items.COMMENT
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICAL…pree_calculator_returns_default_refund_amount_patch.rb8 inventory_unit.order.adjustments.eligible.non_tax.sum(:amount) * percentage_of_order_total(inventory_unit)CODE
CRITICAL…onents/solidus_admin/payment_methods/form/component.rb28 Rails.application.config.spree.payment_methods.sort_by(&:name)CODE
CRITICAL…ontrollers/solidus_admin/payment_methods_controller.rb34 Rails.application.config.spree.payment_methods.map(&:name)CODE
CRITICAL…/controllers/spree/admin/payment_methods_controller.rb54 @payment_method_types = Rails.application.config.spree.payment_methods.sort_by(&:name)CODE
CRITICAL…c/models/solidus_promotions/product_advertiser_spec.rb34 expect(product.master.prices.first.discounts.map(&:label)).to include("Promotion (Because we like you)")CODE
CRITICAL…/spec/models/solidus_promotions/order_adjuster_spec.rb210 end.not_to change { order.shipments.first.shipping_rates.first.discounts.reject(&:marked_for_destruction?).lengtCODE
Slop Phrases8 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMcore/config/i18n-tasks.yml125## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:COMMENT
MEDIUMcore/config/initializers/friendly_id.rb53 # 'slug', but you can change it if you wish.COMMENT
LOWcore/config/initializers/friendly_id.rb83 # you use this, don't forget to add "babosa" to your Gemfile.COMMENT
LOWcore/config/initializers/friendly_id.rb83 # you use this, don't forget to add "babosa" to your Gemfile.COMMENT
LOW…re/lib/generators/solidus/install/install_generator.rb175 say_status :skipping, "migrations (don't forget to run rake db:migrate)"CODE
MEDIUMpromotions/lib/solidus_promotions/promotion_map.rb6 # If you have custom rules or actions, you can add them to this hash like so:COMMENT
LOW…rators/solidus_promotions/install/install_generator.rb44 say "Skipping bin/rails db:migrate, don't forget to run it!"CODE
MEDIUMapi/config/i18n-tasks.yml125## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:COMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
LOWcore/spec/lib/tasks/dummy_task_spec.rb22 # random so we just create the same spec twice. We could probably combine thisCOMMENT
MEDIUMadmin/lib/solidus_admin/preview.rb3# This module will add all the necessary harness to a ViewComponent::PreviewCOMMENT
LOWapi/app/controllers/spree/api/products_controller.rb52 # Or just pass in the option types hash:COMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡…rs/spree/core/controller_helpers/payment_parameters.rb44 # Step 1: Gather all the information and ensure all the pieces are there.COMMENT
LOW⚡…rs/spree/core/controller_helpers/payment_parameters.rb58 # Step 2: Perform the modifications.COMMENT
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡…rs/spree/core/controller_helpers/payment_parameters.rb44 # Step 1: Gather all the information and ensure all the pieces are there.COMMENT
LOW⚡…rs/spree/core/controller_helpers/payment_parameters.rb58 # Step 2: Perform the modifications.COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcore/app/models/spree/payment_method.rb166 # Check if given source is supported by this payment methodCOMMENT
LOW…rate/20250129061658_add_metadata_to_spree_resources.rb17 # Check if the database supports jsonb for efficient queryingCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcore/lib/spree/testing_support/flaky.rb5# Usage:COMMENT
LOWpromotions/app/models/solidus_promotions/benefit.rb22 # Usage exampleCOMMENT