Automattic / VIP-Coding-Standards

PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.
https://wpvip.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/
Other
236 stars 40 forks source link

Review the WordPressVIPMinimum.Hooks.PreGetPosts sniff #521

Open jrfnl opened 4 years ago

jrfnl commented 4 years ago

Review the WordPressVIPMinimum.Hooks.PreGetPosts sniff for the following in as far as relevant to that sniff:

Other:

Sniff basics, but changes need to be lined up for next major release:

Once PHPCS/PHPCSUtils supports this:

GaryJones commented 4 years ago

Related: #499

jrfnl commented 4 years ago

See: https://github.com/Automattic/VIP-Coding-Standards/issues/520#issuecomment-664731658 for initial review remarks which largely apply to this sniff as well.

rebeccahum commented 3 years ago

Waiting on the release of PHPUtils for this one.