ThemeCheck incorrectly reports error when `with` is used in snippet

オープン 初心者向け
#1,408 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@efegokdemir がすでに取り組んでいます。

2026年11月20日 から。

  • #1411 @efegokdemir による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
testing-qa

調査の方向性

まず MissingRenderSnippetArguments チェックを見つけ、with を使う {% render %} 呼び出しをどのように処理するかを確認します。issue にはファイル名もテストも記載されていません。示された snippet 呼び出しと、image という名前の LiquidDoc パラメーターを使って警告を再現し、その後、ほかの引数不足の警告は引き続き表示される一方で、この警告が表示されなくなることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

When a snippet is included using with:

{% render 'image' with product.featured_image %}

The Theme Check reports a MissingRenderSnippetArguments warning if the LiquidDoc of the snippet adds a parameter named image.

When using with in a render, the ThemeCheck should assume that the 'image' parameter is implicitlty addded through the with.

Expected behaviour

ThemeCheck should not report any warning.

Actual behaviour

Theme check reports a warning.

主要言語
TypeScript
スター
245
フォーク
108
平均マージ
2日 8時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/theme-tools のほかの issue

Shopify/theme-tools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。