mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 32.0.0
The following sniffs are failing and were disabled: * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic Additional changes: * Dropped .inc files from .phpcs.xml (T200956). Change-Id: I340d6b573e9ae2a99085fb19a705fcf567b03f92
This commit is contained in:
parent
bee806c2ff
commit
fb6706a606
|
@ -1,9 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
|
||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic" />
|
||||
<exclude name="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,inc" />
|
||||
<arg name="extensions" value="php" />
|
||||
<arg name="encoding" value="UTF-8" />
|
||||
</ruleset>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"mediawiki/mediawiki-codesniffer": "31.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "32.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.10.3",
|
||||
"mediawiki/minus-x": "1.1.0",
|
||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
||||
|
|
|
@ -40,7 +40,6 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
|
||||
switch ( $params['paction'] ) {
|
||||
case 'addtopic':
|
||||
|
||||
$this->requireAtLeastOneParameter( $params, 'sectiontitle' );
|
||||
$this->requireOnlyOneParameter( $params, 'wikitext', 'html' );
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ class CommentParser {
|
|||
}
|
||||
|
||||
switch ( $code ) {
|
||||
case 'xx' :
|
||||
case 'xx':
|
||||
$s .= 'x';
|
||||
break;
|
||||
case 'xg':
|
||||
|
|
|
@ -163,7 +163,7 @@ class Data {
|
|||
// * We assume that result of $langConv->translate() doesn't produce any special codes/characters
|
||||
// * We assume that calling $langConv->translate() separately for each character is correct
|
||||
switch ( $code ) {
|
||||
case 'xx' :
|
||||
case 'xx':
|
||||
case 'xg':
|
||||
case 'd':
|
||||
case 'D':
|
||||
|
|
Loading…
Reference in a new issue