mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-07-26 10:26:58 +08:00
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. |
||
|---|---|---|
| .. | ||
| ruleset.xml | ||