Skip to content

Follow WP Coding Standards#1115

Open
dkotter wants to merge 3 commits into
developfrom
update/phpcs-config
Open

Follow WP Coding Standards#1115
dkotter wants to merge 3 commits into
developfrom
update/phpcs-config

Conversation

@dkotter

@dkotter dkotter commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Description of the Change

Up to this point we've been using the 10up-Default coding standards, which utilizes the WP Coding Standards but also adds it's own rules on top. We recently started to migrate our plugins to just using the WP Coding Standards as that seems like a better standard to follow so this PR does that for ClassifAI.

This removes the use of 10up/phpcs-composer and replaces that with automattic/vipwpcs and wp-coding-standards/wpcs. We also update our PHPCS config to ensure we're utilizing this.

I then ran the PHPCS autofixer to fix all easy issues (like using array instead of []) and then I manually went through and addressed all remaining errors and warnings, either directly fixing those if needed or adding ignore statements for things that didn't need fixed.

How to test the Change

Ensure all checks pass on this PR, most importantly the PHPCS one. If desired, do a general smoke testing of the plugin.

Changelog Entry

Developer - Switch to directly using the WordPress Coding Standards and fix all errors and warnings that was flagging

Credits

Props @dkotter

Checklist:

Open WordPress Playground Preview

@dkotter dkotter added this to the 3.9.0 milestone Jun 12, 2026
@dkotter dkotter self-assigned this Jun 12, 2026
@dkotter dkotter requested review from a team and jeffpaul as code owners June 12, 2026 19:13
@github-actions github-actions Bot added the needs:code-review This requires code review. label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant