Skip to content

Commit 8ec1c89

Browse files
committed
Ruleset file: add schema tags to the ruleset
As of PHPCS 3.2.0, PHPCS offers an XSD schema for rulesets which defines what can be used in the XML ruleset file. As of a couple of weeks ago, the XSD schema is now available via permalinks. This commit adds the relevant schema tags to the PHPCS Ruleset file(s). Refs: * squizlabs/PHP_CodeSniffer 1433 * https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.2.0 * PHPCSStandards/PHP_CodeSniffer 1094 * https://github.com/PHPCSStandards/schema.phpcodesniffer.com
1 parent 5bfbbfb commit 8ec1c89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PHPCompatibilityWP/ruleset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
2-
<ruleset name="PHPCompatibilityWP">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCompatibilityWP" xsi:noNamespaceSchemaLocation="https://schema.phpcodesniffer.com/phpcs.xsd">
3+
34
<description>WordPress specific ruleset which checks for PHP cross version compatibility.</description>
45

56
<!--

0 commit comments

Comments
 (0)