Go to file
Kunal Mehta 3a8d3b9e03 Handle non-existent categories in the database better
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
2017-10-31 10:42:07 -07:00
i18n Localisation updates from https://translatewiki.net. 2017-10-29 22:48:02 +01:00
includes Handle non-existent categories in the database better 2017-10-31 10:42:07 -07:00
modules Support new wikitext editor for edit helper 2017-04-25 15:21:13 +01:00
tests/phpunit build: Updating mediawiki/mediawiki-codesniffer to 0.9.0 2017-06-20 00:10:41 -07:00
.eslintrc.json build: Replace jshint/jscs with eslint 2017-05-11 16:24:21 +01:00
.gitignore Initial commit 2016-10-17 16:02:53 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:51 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 14.1.0 2017-10-21 03:00:16 +00:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2017-06-07 14:22:42 +04:30
composer.json build: Updating mediawiki/mediawiki-codesniffer to 14.1.0 2017-10-21 03:00:16 +00:00
COPYING Initial commit 2016-10-17 16:02:53 -07:00
extension.json Add tidy-font-bug linter high-priority category 2017-10-23 17:08:57 -05:00
Gruntfile.js build: Replace jshint/jscs with eslint 2017-05-11 16:24:21 +01:00
Linter.alias.php Setting alias of special page name for Urdu language 2017-10-15 19:52:58 +00:00
linter.sql Remove redundant index 2016-12-05 19:40:27 -08:00
package.json build: mark package.json as private 2017-08-01 16:38:18 +02:00
README Initial commit 2016-10-17 16:02:53 -07:00

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.