mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
Change-Id: I247c15b8b6c4ef9bfc5b96f1d6553cd186638fbb
This commit is contained in:
parent
a7fdaffb1b
commit
23e7ccb6d4
|
@ -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 );
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
15
phpcs.xml
15
phpcs.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue