Reduce PHPCS baseline in bounded batches
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Wait for PR #1806 to merge, then inspect phpcs-baseline.json alongside scripts/phpcs-baseline.php and .phpcs.xml.dist. Choose one coherent sniff or directory, run PHPCS on the affected files, and use pnpm run lint:php:baseline to regenerate the baseline. Done means the counts decrease without exclusions or severity changes, pnpm run lint:php and pnpm run quality pass, and focused tests pass where behavior changes.
索引モデルが issue の本文から書いたものです。
説明
What
Reduce the PHPCS baseline introduced by #1805, currently tracking 1,289 errors and 590 warnings by file and sniff.
Why
The ratchet blocks new violations but existing coding-standard debt still obscures defects and slows release review.
Tier
tier:standard — the work spans production, tests, tooling, and legacy compatibility files and should be delivered in bounded batches.
Files
phpcs-baseline.jsonscripts/phpcs-baseline.php.phpcs.xml.dist- Files and sniffs named in
phpcs-baseline.json
Files Scope
inc/admin-pages/class-multisite-setup-admin-page.phpviews/wizards/multisite-setup/welcome.phpphpcs-baseline.json
Reference pattern
Fix a coherent sniff or directory, run PHPCS on the changed files, then deliberately regenerate the exact baseline with pnpm run lint:php:baseline. Do not weaken the coding standard or broadly exclude runtime code.
Implementation steps
- Prioritize production errors over warnings and test-only findings.
- Use
vendor/bin/phpcbf <files> || trueonly for fixable groups, then inspect every change. - Hand-fix semantic/security findings and add tests where behavior changes.
- Regenerate the baseline and confirm counts only decrease.
Acceptance criteria
- Baseline counts decrease materially.
- No broad production exclusion or reduced severity is added.
-
pnpm run lint:phppasses against the reduced baseline. -
pnpm run qualitypasses. - Focused tests pass for behavior-affecting fixes.
Verification
vendor/bin/phpcs <changed-files>pnpm run lint:php:baselinepnpm run quality
Dependency
Blocked by #1805; begin after PR #1806 merges.
aidevops.sh v3.32.317 plugin for OpenCode v1.18.29 with gpt-5.6-sol spent 4h 26m and 539,830 tokens on this with the user in an interactive session.
- 主要言語
- PHP
- スター
- 218
- フォーク
- 87
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 85
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Ultimate-Multisite/ultimate-multisite のほかの issue
-
perf: lazy-load the top My Sites toolbar and defer initial site-list hydration対応中かも @superdav42 が 3 日前に担当しました。 オープンenhancement origin:interactive priority:medium status:in-review tier:standard
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Ultimate-Multisite/ultimate-multisite#2015 · コメント 6 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Secondary networks: sunrise queries unregistered scoped tables, and wu_{N}_* tables are never created対応中かも @superdav42 が 3 日前に担当しました。 オープンbug origin:interactive status:in-review
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Ultimate-Multisite/ultimate-multisite#2012 · コメント 13 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Secondary networks never get Ultimate Multisite tables created or upgraded対応中かも @superdav42 が 4 日前に担当しました。 オープンbug origin:interactive status:claimed
Ultimate-Multisite/ultimate-multisite#2009 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
needs-maintainer-review review:approve
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
Ultimate-Multisite/ultimate-multisite#1952 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
auto-dispatch needs-investigation origin:worker security status:available tier:standard type:bug
難易度 3/5 半日 初心者へのやさしさ 30/100
Ultimate-Multisite/ultimate-multisite#1938 ·
メンテナーはふだん 1 日以内に返信
Ultimate-Multisite/ultimate-multisite の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
Automattic/blocks-engine#3438 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getgrav/grav-plugin-api#66 ·
-
Document Laravel 12/13 attributes that work in modules (UsePolicy, ObservedBy, UseFactory, Bind)オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
nWidart/laravel-modules#2236 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
frontend good first issue healthcare-review
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
AfyaLinkAfrica/afyalink-web#25 ·
メンテナーはふだん 1 日以内に返信