phpcs: Allow linting tools to discover rules
authorBaha <bmansurov@wikimedia.org>
Mon, 5 Jun 2017 16:05:55 +0000 (12:05 -0400)
committerLegoktm <legoktm@member.fsf.org>
Mon, 5 Jun 2017 20:08:44 +0000 (20:08 +0000)
Explicitly stating the current directory fixes the ambiguity
of finding the ruleset referred to in the file. This allows
syntax checkers like flycheck (for GNU Emacs) to work.

Change-Id: I6b046db29d11aff514d8f3623d049f5b6231a9d4

phpcs.xml

index b2c8d89..440604e 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <ruleset name="MediaWiki">
-       <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
+       <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
                <!-- Disable rules added in 0.8.0 that don't pass yet -->
                <exclude name="MediaWiki.Commenting.FunctionComment.ExtraParamComment" />
                <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />