You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shopify and Storyblok TOML configurations for regression testing #695
Would our Shopify and Storyblok TOML configurations help with regression testing the fixes?
They are based on audits across 18 Shopify and 12 Storyblok projects using squirrel v0.0.108. We can provide both stack templates, the inherited global settings, and the rationale with live examples for the relevant exclusions.
Calibration is still ongoing: some existing exclusions are provisional and have not yet been established as unavoidable platform limitations. We would mark those explicitly rather than present the configurations as recommended defaults.
If useful, we can share a sanitized configuration bundle with project URLs and other project-specific settings replaced by placeholders.
Thanks for reviewing our reports and working on the fixes.
Acceptance Criteria
The reporter is thanked and told the offer is welcome; ask for the sanitized bundle (placeholders for URLs and project settings).
Decide where it lives: a regression fixture set under packages/rules/tests/ or a docs example, never committed with real project URLs or secrets.
Provisional exclusions are marked as such and not documented as recommended defaults.
Each exclusion that is kept as documentation names the rule it silences and the platform reason, verified against a live example.
@deniskern, thanks again, and following up on the reply above with what would help most:
Contents: both stack templates (Shopify and Storyblok) plus the inherited global settings, as the TOML files you actually run.
Placeholders:
replace domains and project names (for example https://shop.example);
remove any [crawler] headers values, tokens, cookies, Web Bot Auth signatures and API keys.
One comment per exclusion or rule disable:
the rule it silences, or the path it skips;
the platform reason;
whether it is provisional or established. A # provisional marker is enough.
Live examples: a public URL per exclusion in your rationale is welcome. We will verify against those, but we will not commit them; the repo keeps only a description.
How to send: paste the files here, link a gist, or attach a zip.
Where they would land:
Regression fixtures. The sanitized files go in apps/cli/tests/fixtures/platform-configs/ (shopify.toml, storyblok.toml). A test will:
load each through the CLI's own config loader, which uses strict TOML;
check that every rule ID the file names exists;
check that every exclude pattern is valid.
That catches drift when a rule is renamed.
Replays of the rule bugs. The exclusions that work around rule bugs become fixtures in those issues' tests under packages/rules/tests/, so each fix is replayed against your template:
Docs. Established exclusions (not provisional ones) go in docs/configuration/examples.mdx as "Shopify storefront" and "Storyblok site" examples, next to the existing e-commerce example. They will be linked from the Shopify recipe in docs/guides/rate-limited-hosts.mdx. Provisional entries stay out of the docs until they are confirmed.
Maintainer notes
When the bundle arrives, verify every TOML fence against loadAllRules() and each rule's options schema before it is documented:
unknown keys are silently ignored;
squirrel config validate does not check rule_options;
rule options accept no globs in exclude patterns;
Bun.TOML is lenient where the CLI's parser is strict.
Each documented exclusion names its rule and the platform reason (criterion 4). Close the issue with the outcome: fixtures, docs, or declined.
Recommended session: Sonnet, medium effort. Size XS now (the reply), S once the bundle arrives (fixtures, test, docs page, make validate).
Thanks for the detailed guidance. Attached are sanitized copies of our effective Shopify and Storyblok configurations, including the inherited global defaults. I marked provisional exclusions and disables inline; please treat those as local observations rather than documentation recommendations. We replaced project URLs and names and found no credential values in these source templates.
Shopify — shopify.toml
[project]
name = "Example Shopify store"url = "https://myshop.example"system = "shopify"
[crawler]
user_agent = ""per_host_concurrency = 1per_host_delay_ms = 1000max_backoff_ms = 600000max_prefix_budget = 0.6exclude = ["/cart/**", "/checkout/**", "/account/**", "/orders/**", "/policies/**"]
allow_query_params = ["page", "sort_by", "filter.v.price", "filter.v.option", "filter.p.tag", "q", "variant"]
drop_query_prefixes = ["_pos", "_psq", "variant"]
[rules]
disable = [
# Established: Shopify controls these response security headers and captcha transport."security/csp",
"security/hsts",
"security/http-to-https",
"security/form-captcha",
# Provisional: Shopify/app infrastructure controls transport and cache behavior; validate against current rules."perf/cache-headers",
"perf/preconnect",
"perf/source-maps",
"perf/compression",
"perf/http2",
"perf/ttfb",
# Provisional: minified theme bundles and app-owned assets can trigger these checks; confirm against fixed rule behavior."perf/unminified-js",
"perf/legacy-js",
"perf/duplicate-js",
# Established: publisher-authorship and editorial claims do not fit a product storefront; content/legal checks remain enabled."eeat/author-byline",
"eeat/author-expertise",
"eeat/affiliate-disclosure",
"eeat/citations",
"eeat/disclaimers",
"eeat/editorial-policy",
"eeat/ymyl-detection",
"eeat/content-dates",
]
[rule_options."eeat/about-page"]
paths = ["/pages/ueber-uns", "/pages/uber-uns", "/pages/wer-wir-sind", "/pages/about", "/pages/about-us", "/pages/unsere-geschichte", "/pages/our-story", "/pages/the-team", "/pages/das-team"]
[rule_options."eeat/privacy-policy"]
paths = ["/policies/privacy-policy", "/policies/datenschutz", "/pages/datenschutz", "/pages/privacy-policy"]
[rule_options."content/word-count"]
min_words = 150warn_threshold = 300
[rule_options."links/dead-end-pages"]
excludePatterns = ["/products/", "/collections/", "/thank-you", "/confirmation", "/download", "/success", "/submitted"]
# Established: Shopify creates these cookies without HttpOnly/Secure; only those checks are waived.
[[ignore]]
rule = "security/cookie-flags"items = ["localization", "cart_currency"]
checks = ["cookie-httponly", "cookie-secure"]
reason = "Shopify sets these cookies itself"
Storyblok — storyblok.toml
[project]
name = "Example Storyblok site"url = "https://example.com"system = "storyblok"
[crawler]
# Established: editor transport, preview/draft URLs and app/API/framework assets are not public rendered pages.exclude = [
"/_storyblok/**", "*?_storyblok=*", "*?_storyblok_tk*", "*?version=draft*", "*?token=*", "*?cv=*",
"/api/**", "/_api/**", "/_next/**", "/api/revalidate**", "/api/preview**", "/api/exit-preview**", "/api/draft**",
"/_nuxt/**", "/__nuxt_error**", "/api/_content/**", "/_payload.json", "*.json", "/_astro/**", "/_app/**", "/_ipx/**",
"/admin/**", "/login/**", "/checkout/**", "/cart/**", "/account/**",
"*.pdf", "*.zip", "*.tar.gz", "*.js", "*.css", "*.xml",
"*?preview=*", "*?draft=*", "/search**", "/suche**",
]
allow_query_params = ["page", "seite", "sort", "category", "tag"]
drop_query_prefixes = ["_storyblok"]
[rules]
disable = [
# Established: the editor frames the site; CSP frame-ancestors is the configurable control instead."security/x-frame-options",
# Established: publisher/editorial trust claims are not generic requirements for this CMS site."eeat/affiliate-disclosure",
"eeat/ymyl-detection",
"eeat/disclaimers",
"eeat/editorial-policy",
"eeat/citations",
"eeat/author-expertise",
"eeat/trust-signals",
# Established: this general-purpose content site has no product, review or local-business catalog."schema/product",
"schema/review",
"schema/local-business",
]
[rule_options."eeat/about-page"]
paths = ["/ueber-uns", "/uber-uns", "/wer-wir-sind", "/about", "/about-us", "/agentur", "/agency", "/team", "/das-team", "/our-story"]
[rule_options."eeat/privacy-policy"]
paths = ["/datenschutz", "/datenschutzerklaerung", "/privacy-policy", "/privacy"]
[rule_options."content/article-links"]
short_min_external = 1medium_min_external = 1long_min_external = 1
[rule_options."perf/ttfb"]
good_threshold = 800poor_threshold = 1500
[rule_options."content/word-count"]
min_words = 200warn_threshold = 400
Inherited global settings
These apply to both configs and are part of the requested effective configuration. Values retained from _globals.toml; credentials and customer identifiers were absent in inspected files.
[internal_links]
max_targets = 100
[external_links]
max_links = 100
[storage]
keep_audits = 3content_store_max_bytes = 10737418240
[crawler]
max_pages = 100delay_ms = 500per_host_delay_ms = 750timeout_ms = 60000concurrency = 4per_host_concurrency = 2breadth_first = truemax_prefix_budget = 0.25respect_robots = truefollow_redirects = truedisable_discovery_probes = falseheaders = { Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8" }
drop_query_prefixes = ["utm_", "gclid", "fbclid", "mc_", "_ga", "ref", "source", "pk_", "mtm_"]
[lighthouse]
templates = [{ label = "home", path = "/" }]
[rules]
enable = ["*"]
time_budget_ms = 5000# Global established disables: thumbnails are upload detail; schema/video duplicates video-schema;# AAA identical links are a mega-menu pattern; library audit is covered by vuln-libs/techstack;# weak links overlap orphan-pages; keyword stuffing remains noisy on shop cards/newsletter;# adblock/social outcomes are visitor/marketing choices; ax discovery checks require intrusive path probes;# URL style rules are not defects on established URLs.disable = ["video/video-thumbnail", "schema/video", "a11y/identical-links-same-purpose", "perf/js-libraries", "links/weak-internal-links", "content/keyword-stuffing", "adblock/*", "social/share-buttons", "social/social-profiles", "ax/llms-txt", "ax/agents-md", "ax/markdown-response", "ax/well-known-agent", "ax/api-discovery", "ax/rsl-license", "url/stop-words", "url/length", "url/special-chars", "url/lowercase"]
[gsc]
property_type = "url"property_override = ""cwv_urls = []
[[ignore]]
rule = "a11y/label-content-name-mismatch"selectors = ["select"]
reason = "Option texts are values, not the visible label of a select"
[[ignore]]
rule = "a11y/label-content-name-mismatch"items = ['regex:^[a-z][\\w-]*: visible="[.#][\\w-]+[^"{}]*\\{\\s*-?[a-z][\\w-]*\\s*:[^"{}]*[;}][^"]*" vs aria-label="']
reason = "Embedded CSS source is not rendered label text"
Global disable list entries are established except content/keyword-stuffing, which is provisional pending the referenced upstream rule coverage; the Storyblok preview/API exclusions are established platform/build artifacts, while broad file-extension and search exclusions are provisional site-specific crawl choices (confirm before documenting as general guidance). The Storyblok wildcard query patterns preserve the source config verbatim. One exclusion, *?token=*, filters tokenized URLs; no secret value is present in the pattern.
Activity
nc9 commentedon Oct 12, 2026
Yes! it would be perfect - if you could post them here i'll see what we can learn for the docs. Shopify is a common use case
Thanks
nc9 commentedon Oct 13, 2026
Spec prep
@deniskern, thanks again, and following up on the reply above with what would help most:
https://shop.example);[crawler] headersvalues, tokens, cookies, Web Bot Auth signatures and API keys.provisionalor established. A# provisionalmarker is enough.Where they would land:
Regression fixtures. The sanitized files go in
apps/cli/tests/fixtures/platform-configs/(shopify.toml,storyblok.toml). A test will:That catches drift when a rule is renamed.
Replays of the rule bugs. The exclusions that work around rule bugs become fixtures in those issues' tests under
packages/rules/tests/, so each fix is replayed against your template:/policies/**witheeat/privacy-policy;<style>-based part in a11y/aria-hidden-focus, a11y/button-name: evaluate hiding by <style> rules without false hidden results #678.Docs. Established exclusions (not provisional ones) go in
docs/configuration/examples.mdxas "Shopify storefront" and "Storyblok site" examples, next to the existing e-commerce example. They will be linked from the Shopify recipe indocs/guides/rate-limited-hosts.mdx. Provisional entries stay out of the docs until they are confirmed.Maintainer notes
When the bundle arrives, verify every TOML fence against
loadAllRules()and each rule's options schema before it is documented:squirrel config validatedoes not checkrule_options;Bun.TOMLis lenient where the CLI's parser is strict.Each documented exclusion names its rule and the platform reason (criterion 4). Close the issue with the outcome: fixtures, docs, or declined.
Recommended session: Sonnet, medium effort. Size XS now (the reply), S once the bundle arrives (fixtures, test, docs page,
make validate).deniskern commentedon Nov 9, 2026
Thanks for the detailed guidance. Attached are sanitized copies of our effective Shopify and Storyblok configurations, including the inherited global defaults. I marked provisional exclusions and disables inline; please treat those as local observations rather than documentation recommendations. We replaced project URLs and names and found no credential values in these source templates.
Shopify —
shopify.tomlStoryblok —
storyblok.tomlInherited global settings
These apply to both configs and are part of the requested effective configuration. Values retained from
_globals.toml; credentials and customer identifiers were absent in inspected files.Global disable list entries are established except
content/keyword-stuffing, which is provisional pending the referenced upstream rule coverage; the Storyblok preview/API exclusions are established platform/build artifacts, while broad file-extension and search exclusions are provisional site-specific crawl choices (confirm before documenting as general guidance). The Storyblok wildcard query patterns preserve the source config verbatim. One exclusion,*?token=*, filters tokenized URLs; no secret value is present in the pattern.fix(cli): squirrel ci prints the report's own address; docs: issues a…