Repository Analysis

solidusio/solidus

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

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of solidusio/solidus, a Ruby project with 5,316 GitHub stars. SynthScan v2.0 examined 181,048 lines of code across 2517 source files, recording 520 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written 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).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.3K
Stars
Ruby
Language
181.0K
Lines of Code
2.5K
Files
520
Pattern Hits
2026-07-14
Scan Date
0.00
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 5HIGH 0MEDIUM 37LOW 478

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

Over-Commented Block248 hits · 246 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.rb1# frozen_string_literal: trueCOMMENT
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.rb121 # Used as partial name for your payment methodCOMMENT
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
LOW…app/models/spree/core/state_machines/inventory_unit.rb1# frozen_string_literal: trueCOMMENT
LOWcore/app/models/spree/core/state_machines/shipment.rb1# frozen_string_literal: trueCOMMENT
188 more matches not shown…
Hyper-Verbose Identifiers115 hits · 119 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.rb257 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.rb31 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.rb133 def eligible_exchange_variants(stock_locations = nil)CODE
LOWcore/app/models/spree/return_item.rb201 def sibling_intended_for_exchange(status)CODE
LOWcore/app/models/spree/shipment.rb303 def update_attributes_and_order(params = {})CODE
LOWcore/app/models/spree/unit_cancel.rb42 def weighted_line_item_amount(line_item)CODE
LOWcore/app/models/spree/payment_create.rb63 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.rb183 def register_line_item_comparison_hook(hook)CODE
LOWcore/app/models/spree/order.rb354 def find_line_item_by_variant(variant, options = {})CODE
LOWcore/app/models/spree/order.rb515 def create_shipments_for_line_item(line_item)CODE
LOWcore/app/models/spree/order.rb725 def validate_payments_attributes(attributes)CODE
LOWcore/app/models/spree/calculator/default_tax.rb56 def sum_of_included_tax_rates(item)CODE
LOW…dels/spree/calculator/returns/default_refund_amount.rb16 def weighted_order_adjustment_amount(inventory_unit)CODE
LOW…dels/spree/calculator/returns/default_refund_amount.rb20 def weighted_line_item_amount(inventory_unit)CODE
LOW…dels/spree/calculator/returns/default_refund_amount.rb24 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.rb41 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.rb16 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
LOWcore/app/models/concerns/spree/user_methods.rb96 def last_incomplete_spree_order(store: nil, only_frontend_viewable: true)CODE
LOWcore/app/models/concerns/spree/user_methods.rb106 def available_store_credit_total(currency:)CODE
LOWcore/app/models/concerns/spree/user_methods.rb112 def display_available_store_credit_total(currency:)CODE
55 more matches not shown…
Fake / Example Data101 hits · 111 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
LOWcore/spec/models/spree/order_spec.rb2036 let(:bill_address) { create(:address, name: "John Doe") }CODE
LOWcore/spec/models/spree/order_spec.rb2037 let(:ship_address) { create(:address, name: "Jane Doe") }CODE
LOWcore/spec/models/spree/order_spec.rb2043 it { is_expected.to eq("John Doe") }CODE
LOWcore/spec/models/spree/order_spec.rb2048 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
LOWcore/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
LOWcore/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
LOWcore/spec/helpers/products_helper_spec.rb122<li>Lorem ipsum dolor sit amet</li>CODE
LOWcore/spec/helpers/products_helper_spec.rb122<li>Lorem ipsum dolor sit amet</li>CODE
LOWcore/spec/helpers/products_helper_spec.rb123<li>Lorem ipsum dolor sit amet</li>CODE
LOWcore/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.rb7 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.rb7 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.rb7 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.rb7 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
LOWadmin/spec/features/roles_spec.rb8 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.rb7 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.rb7 before { 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.rb7 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.rb6 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.rb7 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
LOWadmin/spec/features/orders/show_spec.rb82 fill_in "Name", with: "Jane Doe"CODE
LOWadmin/spec/features/orders/show_spec.rb94 expect(page).to have_content("Jane Doe")CODE
LOWadmin/spec/features/orders/adjustments_spec.rb10 sign_in create(:admin_user, email: "admin@example.com")CODE
LOWadmin/spec/features/orders/index_spec.rb6 before { sign_in create(:admin_user, email: "admin@example.com") }CODE
41 more matches not shown…
Self-Referential Comments32 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMstorefront/template.rb163 # This file is always necessary in order to run frontend specs from extensionsCOMMENT
MEDIUM…front/templates/spec/solidus_storefront_spec_helper.rb23# 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.rb33 # 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.rb11 # This class is not meant to be instantiated. Please create instances of concrete payment methods.COMMENT
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.rb23# Create a return authorizationCOMMENT
MEDIUMsample/db/samples/reimbursements.rb35# 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 Indicators5 hits · 50 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…end/app/controllers/spree/admin/variants_controller.rb19 @object.prices.build(@object.product.master.default_price.attributes.except("id", "created_at", "updated_at", "dCODE
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.rb58 # 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.rb162 # 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