yoastcs icon indicating copy to clipboard operation
yoastcs copied to clipboard

Yoast coding standards

Results 16 yoastcs issues
Sort by recently updated
recently updated
newest added

As the default is RAW INPUT, this does not add anything.

Type: enhancement
Prio: 1/High
Status: wait for upstream/PHPCSExtra

@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...

Type: enhancement

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...

Type: enhancement
Prio: 3/Low

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...

Type: enhancement
Status: blocked
Status: awaiting feedback

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...

Type: enhancement
Status: blocked
Status: awaiting feedback

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...

Type: enhancement
Status: wait for upstream/WordPressCS

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...

Type: enhancement
Status: wait for upstream/WordPressCS

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...

Status: blocked
Status: needs investigation

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...

Type: enhancement
Prio: 3/Low
Status: wait for upstream/WordPressCS

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...

Prio: 3/Low