Go to file
Arlo Breault c04b075858 Stop constructing Database with a page id
Instead, pass the page id when using methods for a page.  The change
avoids constructing Database a dummy page id when those methods aren't
going to be used.

getFromId doesn't seem like it needs a page id, since the linter id is
the primary key.

Also, a namespace id should no longer optional to setForPage.  The
LinterWriteNamespaceColumnStage option already gates whether to include
it in the row.

Follows-Up: I9fd6e7724dcf33be0b1feb19ec8eb448738cab09
Change-Id: Ib3d3622144b670ebe1a4ce04e6db6811584d42c8
2024-04-10 21:07:08 -04:00
.phan Add phan 2019-03-08 22:11:29 +01:00
i18n Localisation updates from https://translatewiki.net. 2024-04-10 09:21:05 +02:00
includes Stop constructing Database with a page id 2024-04-10 21:07:08 -04:00
maintenance Stop constructing Database with a page id 2024-04-10 21:07:08 -04:00
modules Handle VisualEditor when it skips the "tempWikitextEditor" stage 2019-06-11 17:29:29 +02:00
sql Cleanup SchemaHooks and SQL files 2023-12-22 02:13:52 +00:00
tests/phpunit Stop constructing Database with a page id 2024-04-10 21:07:08 -04:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 00:44:51 +00:00
.gitignore build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 16:06:08 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:51 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 40.0.1 2022-11-16 08:54:23 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-17 07:39:01 +00:00
composer.json build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-11 20:44:04 +01:00
COPYING Initial commit 2016-10-17 16:02:53 -07:00
extension.json [DI] Clean up LintErrorsPager 2024-04-09 18:35:34 -04:00
Gruntfile.js build: Updating dependencies 2021-01-30 03:48:34 +00:00
Linter.alias.php Translate special page name (LintErrors) into Polish 2023-02-07 01:44:25 +00:00
package-lock.json build: Updating dependencies 2024-02-10 22:20:52 +00:00
package.json build: Updating dependencies 2024-02-10 22:20:52 +00: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.