CdnPreconnect misses `href="https://cdn.shopify.com"` without a trailing path
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- testing-qa
調査の方向性
CdnPreconnect のチェックとそのテストを見つけ、href の値をどのように照合するか、想定される違反をどのように検証するかを読んでください。CDN ホストのみの場合とプロトコル相対 URL の場合に加え、一致しないはずの example.com のパスのケースを追加し、チェックに絞ったテストを実行してください。最初の 2 つのタグが報告され、3 つ目が報告されなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
CdnPreconnect matches the href with the pattern .+cdn.shopify.com.+, wrapped in whitespace anchors. The pattern requires at least one character after cdn.shopify.com, so the most common form of the tag is never reported:
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>
<link rel="preconnect" href="//cdn.shopify.com">
Because the dots are unescaped and the host is not anchored, the pattern also reports links to other hosts that only contain the text in their path:
<link rel="preconnect" href="https://example.com/cdn.shopify.com.html">
The Ruby theme-check version of this check reported any href that contains cdn.shopify.com, so the first case is a regression from the port.
Expected behavior
The first two tags are reported. The third tag is not reported.
Actual behavior
The first two tags produce no offense. The third tag is reported.
Steps to reproduce
- Add
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>tolayout/theme.liquid. - Run
shopify theme check. - No
CdnPreconnectoffense appears. Changing thehreftohttps://cdn.shopify.com/reports the offense.
- 主要言語
- TypeScript
- スター
- 239
- フォーク
- 104
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/theme-tools のほかの issue
-
theme-graph CLI never calls getWebComponentMap, so custom-element references are never resolved対応中かも @reginaldalfret が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Shopify/theme-tools#1291 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
JSONMissingBlock false positive for app block when section supports both @app and @theme対応中かも @chippleh1392 が 142 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Shopify/theme-tools#1144 · コメント 2 件 · リアクション 8 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Shopify/theme-tools#1367 ·
メンテナーはふだん 1 日以内に返信
-
HardcodedRoutes flags paths that only share a prefix with a route対応中かも @RaphaelFakhri が 8 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
Shopify/theme-tools#1362 ·
メンテナーはふだん 1 日以内に返信
-
HTML close-tag auto-insertion (`onTypeFormatting` on `>`) closes the wrong element対応中かも @efegokdemir が 23 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
Shopify/theme-tools#1327 ·
メンテナーはふだん 1 日以内に返信
Shopify/theme-tools の issue をすべて見る
似ている issue
-
Parallel reticle_verify opens per-flow leases without the source lease's ignoreHTTPSErrors対応中かも @as992949791 が今日担当しました。 オープンgood first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
reticlehq/reticle#2033 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:quality p3-medium ready-for-agent type:docs
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
fderuiter/deruiter.dev#3589 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
manfredsteyer/angular-oauth2-oidc#1514 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
marmelab/react-admin#11431 ·
メンテナーはふだん 1 日以内に返信