build: Updating mediawiki/mediawiki-codesniffer to 29.0.0

The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.WrongStyle

Change-Id: Ifa2c7a7febc1e06c28318305cfef0b0103c6e8eb
This commit is contained in:
libraryupgrader 2020-01-14 11:52:14 +00:00 committed by Thiemo Kreuz (WMDE)
parent c874103030
commit 6adb1c423b
4 changed files with 7 additions and 3 deletions

View file

@ -1,8 +1,12 @@
<?xml version="1.0"?>
<ruleset name="Scribunto">
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Usage.ForbiddenFunctions.popen" />
<exclude name="MediaWiki.Usage.ForbiddenFunctions.proc_open" />

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"mediawiki/mediawiki-codesniffer": "29.0.0",
"mediawiki/lua-sandbox": "3.0.1",
"mediawiki/minus-x": "0.3.2",
"jakub-onderka/php-console-highlighter": "0.3.2",

View file

@ -103,7 +103,7 @@ class Scribunto_LuaCommonTest extends Scribunto_LuaEngineTestBase {
);
$leakedGlobals = array_diff( $actualGlobals, self::$allowedGlobals );
$this->assertEquals( 0, count( $leakedGlobals ),
$this->assertEmpty( $leakedGlobals,
'The following globals are leaked: ' . implode( ' ', $leakedGlobals )
);
}

View file

@ -66,7 +66,7 @@ class Scribunto_LuaStandaloneInterpreterTest extends Scribunto_LuaInterpreterTes
$engine = TestingAccessWrapper::newFromObject( $interpreter->engine );
$status = $interpreter->getStatus();
$pid = $status['pid'];
$this->assertInternalType( 'integer', $status['pid'] );
$this->assertIsInt( $status['pid'] );
$initialVsize = $this->getVsize( $pid );
$this->assertGreaterThan( 0, $initialVsize, 'Initial vsize' );