yoastcs
yoastcs copied to clipboard
Yoast coding standards
As the default is RAW INPUT, this does not add anything.
@diedexx, @enricobattocchi and me have had a brainstorm session in the office this week to validate previously made decisions about code style and best practices and to come up with...
The `ValidHookName` sniff contains a warning when dynamic hook names are encountered to manually examine those for hook name length. The maximum word count is configurable, not fixed. ``` Hook...
Via: * https://yoast.slack.com/archives/CQ2G9ASK1/p1596032760007100 * https://yoast.slack.com/archives/CQ2G9ASK1/p1596032943008700 * https://yoast.slack.com/archives/C0361PEK4/p1592487948161600 Some PHPMD checks used to be run via CodeClimate. Now CodeClimate has been turned off, these are no longer run. A number of...
I'd like to see a WordPress plugin sniff that reads the plugin version and detects functions and classes that have been `@deprecated` more than 2 major versions ago. Let's also...
In PHP the [session functions](https://www.php.net/manual/en/ref.session.php) by default store session date in files. On many WordPress hosts creating files in this manner can lead to errors, either due to the amount...
In our integrations directory we have all our classes that hook into WordPress filters and actions. As any exceptions thrown here in public functions wouldn't be able to be caught...
With the 14.0 release we ran into unfortunate issues where we were not catching all our own exceptions, thus leading to fatals. Because of this we'd like to explore options...
When we deprecate a method, function or hook we use the build in WordPress functions for it. One of the arguments these functions should receive the version number and that's...
With reference to the discussion had in https://github.com/Yoast/yoastcs/pull/96#discussion_r219403952, it may be a good idea to add a `CONTRIBUTING.md` file with some guidelines on: * What belongs in this repo and...