mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-12 01:09:49 +00:00
499a1c3796
* This performance improvement patch uses the namespace from the new field 'linter_namespace' in the linter table instead of the 'page_namespace' in the page table. It checks for and requires the presence of the linter_namespace field in the linter table, as well as the config variable 'LinterUseNamaspaceColumnStage' being set true. * If the linter_namespace field is present and aforementioned config variable is true, the code assumes that the config variable 'LinterWriteNamespaceColumnStage' is set true and recording the linter_namespace for new lint errors is active and the migrateNamespace.php migrate code has been run to migrate the page_namespace data into existing linter records that were created before the linter_namespace column existed and were left NULL during the table alter maintenance operation. * A follow on patch should remove the configuration variables and conditional code producing the final, refactored code dependent on the new namespace column index. Bug: T299612 Change-Id: I4a1497d9e4dcd6a9a7befdaccf3e34c61694365d |
||
---|---|---|
.phan | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
sql | ||
tests/phpunit | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
Linter.alias.php | ||
package-lock.json | ||
package.json | ||
README |
Extension to help lint wiki pages. Currently designed to take advantage of Parsoid's linter, could also be extended to linting JS or CSS in the future.