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

## Sniff specification: ### Goal: Prevent functions from being declared with: * A `void` return in combination with another return type. (Forbidden) `* @return \My_Object|void` * Three or more different...

Type: enhancement
Prio: 2/Medium

every `do_action` and `apply_filters` should be documented.

Type: enhancement
Status: wait for upstream/WordPressCS

As previously discussed with @moorscode, this sniff should: 1. Check that only the new PHPCS annotations are used and forbid use of the old annotations. I.e. the following will no...

Type: enhancement
Prio: 2/Medium
Status: wait for upstream/PHPCSExtra

Filtering `SERVER_INPUT` variables using filter_input is disabled on some PHP configurations. (And fails silently)

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

As the `autoload` setting has been added in a later state, the argument is not required. Though this is a setting that should be set explicitly, as it impacts performance...

Status: blocked
Status: needs investigation

As we have the Options framework to handle options properly and apply defaults for options that aren't saved yet, we need to make sure this framework is always used instead...

Type: enhancement
Prio: 2/Medium