The following sniffs are failing and were disabled:
* Generic.ControlStructures.DisallowYodaConditions.Found
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
* MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage
* MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage
Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).
* Added the `wikimedia/jquery` profile in .eslintrc.json (T262222).
* Removed global `$`, included in the `wikimedia/jquery` profile (T262222).
* Removed global `mw`, included via `wikimedia/mediawiki` profile (T262222).
* Dropped the emtpy global definition in .eslintrc.json.
Change-Id: I4ace90c3162ca94e401d80d9d68f278c6a2e9960
Additional changes:
* Removed phan-taint-check-plugin from extra, now inherited from mediawiki-phan-config.
Change-Id: I6748d2720884b7059224e614d686fd3a72d23202
The following sniffs now pass and were enabled:
* PSR12.Files.ImportStatement.LeadingSlash
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".
Change-Id: I6bcf27f48c26d9e130dbd1ee77bd3badb31805d5
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate
Change-Id: I48607226707fcc6c30a194e741d367ddd0c2f27b
Here we add $wgReplaceTextResultsLimit variable (default: 250) to allow
administrator to change this limit.
Change-Id: Iee9d958db8ddd245a98ec6a3d5b5cf8ef1d80370
This increases the minimum supported version of MediaWiki to 1.32+ (and
makes it work at all on MediaWiki 1.34+).
Change-Id: Ibc22b6666d997d9edd95a54e36132c10c9e550aa
Using MovePage class methods to check for permissions and to move the
page.
Also added code to handle errors encountered during move operation.
Bug: T225741
Change-Id: I4c4f5bcb3001d4eead64334c5097be5372c173b9
wfGetDB() returns IDatabase, not Database. Actual implementation
can be a DBConnRef proxy or something else entirely from an
extension that reimplements the interface.
Change-Id: I67c0f3517fc9f1d17d2e4bb11c1669485f1999ba
The method ReplaceTextUtils::link (which is already complicated because
it tries to support ancient MediaWiki) can perform different levels of
escaping depending on whether the HtmlArmor class exists. This is confusing
for taint-check and for humans, and can inevitably lead to errors. Plus
it's bad practice to have a method returning something with a variable
level of taintedness, especially if that depends on something ephemeral
like if a class exists or not.
Thus, the HtmlArmor part is removed, the text is escaped for Linker::link,
and the method now requires non-escaped HTML to be passed in.
Change-Id: I6e2783827580e3d470d316f1d3879679eb67aeda
Deprecated since MediaWiki 1.27 and removed by 0a4c2670a1.
Keep the old way for pre 1.27, because mw.org says 1.23
Change-Id: I0d191734f08752d02def657eef004ce5d16ea83d
The following sniffs are failing and were disabled:
* MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgContLang
Change-Id: I56fb225b2f158ed69fed80fe9a1a2066f407064f
The core module 'mediawiki.special.search' contains more functions
which are not needed here and which causes an error message in the
JavaScript console. (T211384)
This change copies the used part of module 'mediawiki.special.search'
to the local module 'ext.ReplaceText'.
The CSS file for the style module 'ext.ReplaceTextStyles' is renamed
from ext.ReplaceText.css to ext.ReplaceTextStyles.css to make
ext.ReplaceText.css free for the CSS part of module 'ext.ReplaceText'.
Bug: T211384
Change-Id: I41225ccdf8a95a7c501fb6eea99abbd08353f4ea
See I2291c69d9df17c1a9e4ab1b7d4cbc73bc51d3ebb for the anticipated
hard-deprecation of this method in core.
Bug: T197492
Change-Id: I071882f8a97cc439d49611d8613ea4105b95afb6