-
## Bug Description
Sniff classes that extend the [`AbstractArrayAssignmentRestrictionsSniff` class](https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/WordPress/AbstractArrayAssignm…
-
## Rationale
PHPCS 3.4.0 will introduce a new `Generic.Formatting.SpaceBeforeCast` sniff which checks that there is exactly one space before a type cast and includes fixers for no space and too muc…
-
I need to implement phpcs, wpcs, Stylelint and ESLint with the WordPress ruleset to build standardized code.
-
Related: Comments in #780
## Bug Description
When PHP outputs some CSS, you might see:
```php
color:
```
However, that gives a violation of:
> Error: All output should be run through …
-
[PHPCS 3.1, WPCS 0.13.1, PHP 5.6.30]
I'm using `fopen()` with a stream, and WPCS is now flagging this as filesystem usage:
```php
-
I see phpcs -standard=wordpress works fine but in the case of phpcbf it throws fatal error. It does not hapen when I use phpcbf without WordPress standard.
**The issue happens when running this c…
-
## Bug Description
1. Ran `phpcs --standard=WordPress /path/to/file.php`
2. Saw exception
## Minimal Code Snippet
The issue happens when running this command:
```bash
phpcs --standard=Word…
-
This is a master issue to refer back to when running PRs on individual modules/sections of code. We're now at WPCS 1.1.0 and moving forward to matching it through phpcbf-eligible fixes.
-
## Bug Description
Because of no PHP 8.1 support yet, it causes issue with phpcs / phpcbf.
See https://github.com/squizlabs/PHP_CodeSniffer/issues/3677
These places it needs to be fixed:
- h…
-
WP 5.5 will introduce a new `esc_xml()` escaping function.
At a later point in time (not in WP 5.5), it is expected that the I18n variants `esc_xml__()` and `esc_xml_e()` will be added.
The WPCS…