Skip to content

Commit a7ad1f1

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 bfcc514 commit a7ad1f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PHPCompatibilityJoomla/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="PHPCompatibilityJoomla">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCompatibilityJoomla" xsi:noNamespaceSchemaLocation="https://schema.phpcodesniffer.com/phpcs.xsd">
3+
34
<description>Joomla specific ruleset which checks for PHP cross version compatibility.</description>
45

56
<!--

0 commit comments

Comments
 (0)