Skip to content

Update wp-coding-standards/wpcs to 3.4.1 - #368

Merged
desrosj merged 1 commit into
WordPress:masterfrom
obenland:update/wpcs-3.4.1
Jul 29, 2026
Merged

Update wp-coding-standards/wpcs to 3.4.1#368
desrosj merged 1 commit into
WordPress:masterfrom
obenland:update/wpcs-3.4.1

Conversation

@obenland

Copy link
Copy Markdown
Member

Migrates off the WPCS 2.x pin. The old dev-dependency set had rotted enough that composer install no longer works on modern PHP/composer, so this touches three things:

  • Bumps wp-coding-standards/wpcs from ^2.0 to ^3.4.1 and regenerates composer.lock.
  • Bumps dealerdirect/phpcodesniffer-composer-installer from ^0.5 to ^1.1 — the 0.x installer only supports PHP ≤7, which blocked resolution entirely.
  • Adds the allow-plugins config; the lock predated composer's plugin security feature and composer ≥2.2 refuses to run the installer without it.

With this, composer install and composer lint work again. For reference, the restored phpcs run reports 254 errors / 62 warnings across 45 files — this repo has no phpcs CI, so those are informational; cleaning them up is a separate effort. (The locked phpunit ^6 still needs --ignore-platform-req=php on modern PHP; also a candidate for follow-up.)

Part of an org-wide sweep to get all repos onto WPCS 3.4.1.

🤖 Generated with Claude Code

- Bump wpcs from ^2.0 to ^3.4.1 and dealerdirect/phpcodesniffer-
  composer-installer from ^0.5 to ^1.1 (the 0.x installer only supports
  PHP <= 7) and regenerate composer.lock.
- Add the allow-plugins config; the lock predated composer's plugin
  security feature and modern composer refuses to run without it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 27, 2026 19:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@obenland

Copy link
Copy Markdown
Member Author

@desrosj Could I ask for your help with merging this? I don't seem to have access. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@desrosj desrosj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @obenland! One baby step at a time to get the tooling here in a better state.

@desrosj
desrosj merged commit 23bee8f into WordPress:master Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants