mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I3fd4f1a1eeca8d82961eef6a0fa4f1a469259b58
This commit is contained in:
parent
42df4785e3
commit
11061d535b
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "41.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "43.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||
"mediawiki/minus-x": "1.1.1",
|
||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||
|
@ -18,5 +18,10 @@
|
|||
],
|
||||
"phan": "phan -d . --long-progress-bar",
|
||||
"phpcs": "phpcs -sp --cache --ignore=*/node_modules/"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -284,7 +284,7 @@ class Hooks implements
|
|||
}
|
||||
$version = $matches[1];
|
||||
foreach ( $rules as $rule ) {
|
||||
list( $op, $matchVersion ) = $rule;
|
||||
[ $op, $matchVersion ] = $rule;
|
||||
if (
|
||||
( $op === '<' && $version < $matchVersion ) ||
|
||||
( $op === '>' && $version > $matchVersion ) ||
|
||||
|
@ -1219,7 +1219,7 @@ class Hooks implements
|
|||
'lib/ve/lib/jquery.uls/src/jquery.uls.data.js',
|
||||
'lib/ve/lib/jquery.uls/src/jquery.uls.data.utils.js',
|
||||
],
|
||||
] ] );
|
||||
] ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue