build: Updating mediawiki/mediawiki-codesniffer to 32.0.0

The following sniffs are failing and were disabled:
* MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage

The following sniffs now pass and were enabled:
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName

Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).
* Removed globals `mw`, `OO`, `require`, included via `wikimedia/mediawiki` profile (T262222).

Change-Id: I299ad0beaf55d31f8929ddfad1730ecef3b6aa92
This commit is contained in:
libraryupgrader 2020-10-29 07:19:52 +00:00
parent 1db28df096
commit e40014764a
3 changed files with 6 additions and 8 deletions

View file

@ -2,16 +2,14 @@
"root": true, "root": true,
"extends": [ "extends": [
"wikimedia/client", "wikimedia/client",
"wikimedia/jquery" "wikimedia/jquery",
"wikimedia/mediawiki"
], ],
"globals": { "globals": {
"ve": true, "ve": true,
"VisualEditorSupportCheck": false, "VisualEditorSupportCheck": false,
"OO": false,
"unicodeJS": false, "unicodeJS": false,
"RangeFix": false, "RangeFix": false,
"Papa": false, "Papa": false
"mw": false,
"require": false
} }
} }

View file

@ -4,9 +4,9 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" /> <exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
</rule> </rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,inc" /> <arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />
</ruleset> </ruleset>

View file

@ -1,6 +1,6 @@
{ {
"require-dev": { "require-dev": {
"mediawiki/mediawiki-codesniffer": "31.0.0", "mediawiki/mediawiki-codesniffer": "32.0.0",
"mediawiki/mediawiki-phan-config": "0.10.3", "mediawiki/mediawiki-phan-config": "0.10.3",
"mediawiki/minus-x": "1.1.0", "mediawiki/minus-x": "1.1.0",
"php-parallel-lint/php-console-highlighter": "0.5.0", "php-parallel-lint/php-console-highlighter": "0.5.0",