build: Updating mediawiki/mediawiki-codesniffer to 44.0.0

The following sniffs are failing and were disabled:
* Generic.CodeAnalysis.AssignmentInCondition.Found
* Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition

The following sniffs now pass and were enabled:
* Generic.CodeAnalysis.AssignmentInCondition

Change-Id: I8adfdce01ea96f4b62dabd3dea130f9593c7e5ac
This commit is contained in:
libraryupgrader 2024-08-11 03:46:12 +00:00
parent fe8526caf2
commit 32fc8c5ea9
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,8 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.Found" />
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
<!--
Code such as this:
while ( ( $foo = $foo->nextSibling ) && someCondition( $foo ) ) { … }
@ -14,7 +16,6 @@
typo for `==`, which is a convention borrowed from C:
while ( ( $foo = $foo->nextSibling ) ) { … }
-->
<exclude name="Generic.CodeAnalysis.AssignmentInCondition" />
</rule>
<file>.</file>
<arg name="extensions" value="php" />

View file

@ -1,6 +1,6 @@
{
"require-dev": {
"mediawiki/mediawiki-codesniffer": "43.0.0",
"mediawiki/mediawiki-codesniffer": "44.0.0",
"mediawiki/mediawiki-phan-config": "0.14.0",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",