build: Updating mediawiki/mediawiki-codesniffer to 0.9.0

Change-Id: I247c15b8b6c4ef9bfc5b96f1d6553cd186638fbb
This commit is contained in:
Umherirrender 2017-06-26 19:18:47 +02:00
parent a7fdaffb1b
commit 23e7ccb6d4
3 changed files with 10 additions and 11 deletions

View file

@ -314,7 +314,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
// Defer till after the RC row is inserted
// @TODO: doEditContent should let callers specify desired tags
$tag = $params['wikitext'] ? 'visualeditor-wikitext' : 'visualeditor';
DeferredUpdates::addCallableUpdate( function() use ( $tag, $newRevId ) {
DeferredUpdates::addCallableUpdate( function () use ( $tag, $newRevId ) {
ChangeTags::addTags( $tag, null, $newRevId, null );
} );
}

View file

@ -2,11 +2,11 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "0.8.0"
"mediawiki/mediawiki-codesniffer": "0.9.0"
},
"scripts": {
"test": [
"parallel-lint . --exclude vendor",
"parallel-lint . --exclude vendor --exclude node_modules",
"phpcs -p -s"
],
"fix": [

View file

@ -1,14 +1,13 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.Missing.Public"/>
<exclude name="MediaWiki.Commenting.FunctionComment.Missing.Protected"/>
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc"/>
<arg name="encoding" value="utf8"/>
<arg name="encoding" value="UTF-8"/>
<exclude-pattern>vendor</exclude-pattern>
<rule ref="MediaWiki.Commenting.FunctionComment.Missing.Public">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.Missing.Protected">
<severity>0</severity>
</rule>
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern type="relative">^lib/</exclude-pattern>
</ruleset>