mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
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:
parent
c874103030
commit
6adb1c423b
|
@ -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" />
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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 )
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue