mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
The following sniffs are failing and were disabled: * Squiz.PHP.NonExecutableCode.Unreachable Change-Id: Ifa593af5d3fb2aa38dea9f73e903a2fb27d1d6e6
This commit is contained in:
parent
0741f2a1f5
commit
6adf0a0712
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable" />
|
||||
<exclude name="Squiz.Scope.MethodScope.Missing" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "21.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "22.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.3.0"
|
||||
|
|
|
@ -58,7 +58,7 @@ class ReplaceAll extends Maintenance {
|
|||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = "CLI utility to replace text wherever it is ".
|
||||
$this->mDescription = "CLI utility to replace text wherever it is " .
|
||||
"found in the wiki.";
|
||||
|
||||
$this->addArg( "target", "Target text to find.", false );
|
||||
|
@ -72,7 +72,7 @@ class ReplaceAll extends Maintenance {
|
|||
false, true, 'u' );
|
||||
$this->addOption( "yes", "Skip all prompts with an assumed 'yes'.",
|
||||
false, false, 'y' );
|
||||
$this->addOption( "summary", "Alternate edit summary. (%r is where to ".
|
||||
$this->addOption( "summary", "Alternate edit summary. (%r is where to " .
|
||||
" place the replacement text, %f the text to look for.)",
|
||||
false, true, 's' );
|
||||
$this->addOption( "nsall", "Search all canonical namespaces (false). " .
|
||||
|
|
|
@ -674,7 +674,7 @@ class SpecialReplaceText extends SpecialPage {
|
|||
$out->addWikiMsg( 'replacetext_cannotmove', $wgLang->formatNum( count( $unmoveable_titles ) ) );
|
||||
$text = "<ul>\n";
|
||||
foreach ( $unmoveable_titles as $title ) {
|
||||
$text .= "<li>" . ReplaceTextUtils::link( $title ) . "<br />\n";
|
||||
$text .= "<li>" . ReplaceTextUtils::link( $title ) . "<br />\n";
|
||||
}
|
||||
$text .= "</ul>\n";
|
||||
$out->addHTML( $text );
|
||||
|
|
Loading…
Reference in a new issue