mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-24 07:53:51 +00:00
3a8d3b9e03
If a newer version of MediaWiki gets rolled back, it's possible for there to be lint entries in the database that don't exist according to CategoryManager. Instead of showing an error to the user, just silently hide those rows. All callers to CategoryManager::getCategoryId() already check the category exists. The callers for CategoryManager::getCategoryName() will catch the MissingCategoryException, and log it if necessary. Notably LinterError::makeLintError() will return false on invalid rows, and all callers have been updated to handle that. Bug: T179423 Change-Id: Ia5f56f18a51fa871511b02410222a6079efbfff6 |
||
---|---|---|
i18n | ||
includes | ||
modules | ||
tests/phpunit | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
Linter.alias.php | ||
linter.sql | ||
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.