Skip to content

Commit ba1e2da

Browse files
authored
Ruleset: various minor improvements (sirbrillig#244)
* Add XML schema references. * Remove the sniff reference. A Ruleset for a registered standard will automatically include all sniffs in that standard, so no need to explicitly include the sniff. * Consistently use four space indent. Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
1 parent 0809ed2 commit ba1e2da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

VariableAnalysis/ruleset.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0"?>
2-
<ruleset name="VariableAnalysis">
3-
<description>Plugin for PHP_CodeSniffer static analysis tool that adds analysis of problematic variable use.</description>
4-
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis"/>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VariableAnalysis" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
3+
<description>Plugin for PHP_CodeSniffer static analysis tool that adds analysis of problematic variable use.</description>
54
</ruleset>

0 commit comments

Comments
 (0)