mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
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:
parent
fe8526caf2
commit
32fc8c5ea9
|
@ -1,6 +1,8 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
|
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.Found" />
|
||||||
|
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
|
||||||
<!--
|
<!--
|
||||||
Code such as this:
|
Code such as this:
|
||||||
while ( ( $foo = $foo->nextSibling ) && someCondition( $foo ) ) { … }
|
while ( ( $foo = $foo->nextSibling ) && someCondition( $foo ) ) { … }
|
||||||
|
@ -14,7 +16,6 @@
|
||||||
typo for `==`, which is a convention borrowed from C:
|
typo for `==`, which is a convention borrowed from C:
|
||||||
while ( ( $foo = $foo->nextSibling ) ) { … }
|
while ( ( $foo = $foo->nextSibling ) ) { … }
|
||||||
-->
|
-->
|
||||||
<exclude name="Generic.CodeAnalysis.AssignmentInCondition" />
|
|
||||||
</rule>
|
</rule>
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<arg name="extensions" value="php" />
|
<arg name="extensions" value="php" />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "43.0.0",
|
"mediawiki/mediawiki-codesniffer": "44.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.14.0",
|
"mediawiki/mediawiki-phan-config": "0.14.0",
|
||||||
"mediawiki/minus-x": "1.1.3",
|
"mediawiki/minus-x": "1.1.3",
|
||||||
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
"php-parallel-lint/php-console-highlighter": "1.0.0",
|
||||||
|
|
Loading…
Reference in a new issue