build: Updating mediawiki/mediawiki-codesniffer to 0.9.0

The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: Ibc6efa42e23c88739f43567197c4fdc66bdf068c
This commit is contained in:
Kunal Mehta 2017-06-19 19:30:55 -07:00
parent a8de3b6b8d
commit bf2ae90973
2 changed files with 12 additions and 5 deletions

View file

@ -2,7 +2,7 @@
"require-dev": { "require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2", "jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2", "jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "0.7.2" "mediawiki/mediawiki-codesniffer": "0.9.0"
}, },
"scripts": { "scripts": {
"fix": "phpcbf", "fix": "phpcbf",

View file

@ -1,9 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/> <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.FunctionComment.Missing.Protected" />
<exclude name="MediaWiki.FunctionComment.Missing.Public" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
</rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,php5,inc"/> <arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8"/> <arg name="encoding" value="UTF-8" />
<exclude-pattern>vendor</exclude-pattern> <exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>node_modules</exclude-pattern> <exclude-pattern>node_modules</exclude-pattern>
</ruleset> </ruleset>