Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reduce PHPCS baseline in bounded batches

クローズ
#1,809 コメント 6 件 リアクション 0 件 担当者 1 名 GitHub で見る

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

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

2026年10月13日 から。

  • #1944 @superdav42 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
tooling

調査の方向性

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 の本文から書いたものです。

説明

auto-dispatch origin:interactive priority:medium quality-debt status:in-review tier:standard

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.json
  • scripts/phpcs-baseline.php
  • .phpcs.xml.dist
  • Files and sniffs named in phpcs-baseline.json
Files Scope
  • inc/admin-pages/class-multisite-setup-admin-page.php
  • views/wizards/multisite-setup/welcome.php
  • phpcs-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

  1. Prioritize production errors over warnings and test-only findings.
  2. Use vendor/bin/phpcbf <files> || true only for fixable groups, then inspect every change.
  3. Hand-fix semantic/security findings and add tests where behavior changes.
  4. 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:php passes against the reduced baseline.
  • pnpm run quality passes.
  • Focused tests pass for behavior-affecting fixes.

Verification

  • vendor/bin/phpcs <changed-files>
  • pnpm run lint:php:baseline
  • pnpm 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

環境構築

はじめの一歩

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

Ultimate-Multisite/ultimate-multisite のほかの issue

Ultimate-Multisite/ultimate-multisite の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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