WordPress-Coding-Standards/WordPress-Docs
Rodrigo Primo 92dea2c3ea
WordPress-Docs: allow variable comment tags flagged under new PHPCS 4.0 error codes
The `WordPress-Docs` ruleset excludes `Squiz.Commenting.VariableComment.TagNotAllowed`
to allow tags such tags in class variable docblocks, as used by the WordPress
documentation standards.

PHPCS 4.0 replaced this single generic error code with a per-tag `[TagName]TagNotAllowed`
error code (https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/1039), so the existing
exclusion no longer suppresses these warnings when running on PHPCS 4.x.

This commit adds exclusions for the new per-tag error codes (`SinceTagNotAllowed`,
`LinkTagNotAllowed` and `DeprecatedTagNotAllowed`), while keeping the existing
`TagNotAllowed` exclusion for compatibility with PHPCS 3.x.
2026-07-17 16:25:21 -03:00
..
ruleset.xml WordPress-Docs: allow variable comment tags flagged under new PHPCS 4.0 error codes 2026-07-17 16:25:21 -03:00