Automattic / Automattic/VIP-Coding-Standards
New Sniff: target="_blank"
オープン
Good First Issue
help wanted
Standard: VIP-Go
Type: Enhancement
- 主要言語
- PHP
- スター
- 261
- フォーク
- 44
- 平均マージ
- 19分
- マージ済み PR(30日)
- 1
説明
## What problem would the enhancement address for VIP?
There's a potential issue with using `target="_blank"` and not using `rel="noopener"` or `rel="noreferrer"`.
See: https://web.dev/external-anchors-use-rel-noopener/
## Describe the solution you'd like
Maybe warn about this if we see `noopener` or `noreferrer` present?
## What code should be reported as a violation?
`Link`
## What code should *not* be reported as a violation?
`Link`
OR
`Link`
コントリビューションガイド
調査の方向性
まず、リポジトリに既存の sniffs と PHP_CodeSniffer ルールを確認し、アンカー属性がどのように検査されているかを把握します。target="_blank" を持つ は、rel に noopener または noreferrer が含まれていない限り報告され、準拠する 2 つの例は受け入れられることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100