Skip to content

Commit 5c33280

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 f0f4637 commit 5c33280

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PHPCompatibilityPasswordCompat/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="PHPCompatibilityPasswordCompat">
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHPCompatibilityPasswordCompat" xsi:noNamespaceSchemaLocation="https://schema.phpcodesniffer.com/phpcs.xsd">
3+
34
<description>PHPCompatibility ruleset for PHP_CodeSniffer which accounts for polyfills provided by ircmaxell's password_compat library.</description>
45

56
<rule ref="PHPCompatibility">

0 commit comments

Comments
 (0)