Review all sniffs for compatibility with PHPCS >= 4.0
還沒有人認領這個 Issue。
評估
研究方向
未指定特定檔案或測試。先根據列出的 PHPCS 4.x 變更檢查所有 VIPCS sniff,然後查看關於移除或保留 JavaScript 和 CSS sniff 的討論。完成的標準是記錄相容性調查結果,並針對受影響的 sniff 做出決定。
由索引模型根據 Issue 內容生成。
描述
Development on PHPCS 4.x has started a while back.
While there is no timeline known for when it will be ready/released, some (breaking) changes which PHPCS 4.x will contain are already known.
Notable changes as known at the time of writing this:
- The minimum supported PHP version is slated to become PHP 7.2.
- Support for the PEAR installation method will be removed.
- Support for JS and CSS sniffs will be removed.
- Support for the "old-style" ignore annotations, like
@codingStandardsIgnoreLinewill be removed. These were deprecated in PHPCS 3.2.0. - Support for the "old-style" array properties in rulesets, where array items would be passed via a comma separated value instead of as individual items. This was deprecated in PHPCS 3.3.0.
- Deprecated tokens will be removed, most notably
T_ARRAY_HINTandT_RETURN_TYPEwhich were both deprecated in PHPCS 3.3.0.
I expect most of this won't have much effect on the sniffs in VIPCS. If/when more changes become known, I will update the above list.
However, a decision is needed about the future of the sniffs which look at JS/CSS code. There is no urgency (yet), but I'm opening this issue now to raise awareness and open the discussion about this.
- 主要語言
- PHP
- 星號
- 261
- 分支
- 44
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Automattic/VIP-Coding-Standards 的其他 Issue
-
AlwaysReturnInFilter: isInsideIfConditonal() guards the conditions array after reading it可能已有人在做 @tomjn 於 6 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
-
Bug: PreGetPosts warns when the early is_main_query() return is not the first statement in its if可能已有人在做 @tomjn 於 6 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 76/100
-
Suppress filters in get_posts false positive可能已有人在做 @tomjn 於 7 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 48/100
-
Breaking Change Type: Maintenance
難度 4/5 3-5 天 新手友好度 35/100
Automattic/VIP-Coding-Standards#849 · 1 則留言 ·
查看 Automattic/VIP-Coding-Standards 的全部 Issue
相似的 Issue
-
📚 Documentation: Placeholder link `link-to-realtime-docs` in Flutter SDK changelog可能已有人在做 @ShyneChikwapulo 今天認領。 未關閉api / realtime product / auth product / messaging product / vcs
難度 1/5 1 小時以內 新手友好度 82/100
appwrite/appwrite#14272 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 1/5 1 小時以內 新手友好度 75/100
Boavizta/boaviztapi#580 · 1 則留言 ·
-
Add Prestashop未關閉request
難度 2/5 1-3 小時 新手友好度 72/100
endoflife-date/endoflife.date#11303 ·
維護者通常 1 天內回覆
-
0. to triage enhancement
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆