2016-10-13 08:14:18 +00:00
|
|
|
{
|
|
|
|
"name": "Linter",
|
2018-01-04 01:26:40 +00:00
|
|
|
"license-name": "GPL-2.0-or-later",
|
2016-10-13 08:14:18 +00:00
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Linter",
|
|
|
|
"author": [
|
2017-06-20 21:21:46 +00:00
|
|
|
"Kunal Mehta",
|
|
|
|
"Arlo Breault",
|
|
|
|
"Subramanya Sastry"
|
2016-10-13 08:14:18 +00:00
|
|
|
],
|
|
|
|
"descriptionmsg": "linter-desc",
|
|
|
|
"type": "specialpage",
|
2017-12-31 13:05:31 +00:00
|
|
|
"requires": {
|
2024-08-22 21:37:43 +00:00
|
|
|
"MediaWiki": ">= 1.43"
|
2017-12-31 13:05:31 +00:00
|
|
|
},
|
2024-10-10 11:52:30 +00:00
|
|
|
"AutoloadClasses": {
|
|
|
|
"MediaWiki\\Linter\\Maintenance\\MigrateNamespace": "maintenance/migrateNamespace.php",
|
|
|
|
"MediaWiki\\Linter\\Maintenance\\MigrateTagTemplate": "maintenance/migrateTagTemplate.php"
|
|
|
|
},
|
2017-12-12 01:20:02 +00:00
|
|
|
"AutoloadNamespaces": {
|
|
|
|
"MediaWiki\\Linter\\": "includes/"
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
2019-07-04 12:37:15 +00:00
|
|
|
"Linter": [
|
|
|
|
"i18n",
|
|
|
|
"i18n/api"
|
|
|
|
]
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2016-12-02 15:55:13 +00:00
|
|
|
"ExtensionMessagesFiles": {
|
|
|
|
"LinterAlias": "Linter.alias.php"
|
|
|
|
},
|
2022-09-07 01:54:33 +00:00
|
|
|
"HookHandlers": {
|
|
|
|
"main": {
|
2023-02-07 01:27:16 +00:00
|
|
|
"class": "MediaWiki\\Linter\\Hooks",
|
|
|
|
"services": [
|
2024-04-04 21:59:34 +00:00
|
|
|
"LinkRenderer",
|
2024-04-04 22:55:43 +00:00
|
|
|
"JobQueueGroup",
|
Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.
Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.
However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.
Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.
Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-04-19 09:59:00 +00:00
|
|
|
"WikiPageFactory",
|
2024-10-02 20:54:01 +00:00
|
|
|
"ParserOutputAccess",
|
2024-04-04 22:55:43 +00:00
|
|
|
"Linter.CategoryManager",
|
2024-04-05 02:20:45 +00:00
|
|
|
"Linter.TotalsLookup",
|
Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.
Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.
However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.
Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.
Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-04-19 09:59:00 +00:00
|
|
|
"Linter.Database",
|
|
|
|
"MainConfig"
|
2023-02-07 01:27:16 +00:00
|
|
|
]
|
2023-02-07 01:35:45 +00:00
|
|
|
},
|
|
|
|
"schema": {
|
|
|
|
"class": "MediaWiki\\Linter\\SchemaHooks"
|
2022-09-07 01:54:33 +00:00
|
|
|
}
|
|
|
|
},
|
2016-10-13 08:14:18 +00:00
|
|
|
"Hooks": {
|
2023-02-07 01:35:45 +00:00
|
|
|
"LoadExtensionSchemaUpdates": "schema",
|
2022-09-07 01:54:33 +00:00
|
|
|
"BeforePageDisplay": "main",
|
|
|
|
"APIQuerySiteInfoGeneralInfo": "main",
|
|
|
|
"InfoAction": "main",
|
|
|
|
"WikiPageDeletionUpdates": "main",
|
Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.
Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.
However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.
Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.
Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-04-19 09:59:00 +00:00
|
|
|
"ParserLogLinterData": "main",
|
|
|
|
"RevisionDataUpdates": "main"
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2024-11-14 20:11:31 +00:00
|
|
|
"DomainEventSubscribers": [
|
|
|
|
{
|
|
|
|
"events": [ "PageUpdated" ],
|
|
|
|
"class": "MediaWiki\\Linter\\LintSubscriber",
|
|
|
|
"services": [ "Linter.TotalsLookup", "Linter.Database" ]
|
|
|
|
}
|
|
|
|
],
|
2016-10-13 08:14:18 +00:00
|
|
|
"APIListModules": {
|
2024-04-04 22:55:43 +00:00
|
|
|
"linterrors": {
|
|
|
|
"class": "MediaWiki\\Linter\\ApiQueryLintErrors",
|
|
|
|
"services": [
|
|
|
|
"Linter.CategoryManager"
|
|
|
|
]
|
|
|
|
}
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2017-05-29 15:04:57 +00:00
|
|
|
"APIMetaModules": {
|
2024-04-04 21:47:08 +00:00
|
|
|
"linterstats": {
|
|
|
|
"class": "MediaWiki\\Linter\\ApiQueryLinterStats",
|
|
|
|
"services": [
|
2024-04-11 16:24:42 +00:00
|
|
|
"Linter.TotalsLookup"
|
2024-04-04 21:47:08 +00:00
|
|
|
]
|
|
|
|
}
|
2017-05-29 15:04:57 +00:00
|
|
|
},
|
2016-10-13 08:14:18 +00:00
|
|
|
"SpecialPages": {
|
2024-04-04 21:41:29 +00:00
|
|
|
"LintErrors": {
|
|
|
|
"class": "MediaWiki\\Linter\\SpecialLintErrors",
|
|
|
|
"services": [
|
|
|
|
"NamespaceInfo",
|
2024-04-04 22:55:43 +00:00
|
|
|
"TitleParser",
|
2024-04-05 02:41:38 +00:00
|
|
|
"LinkCache",
|
|
|
|
"PermissionManager",
|
2024-04-04 22:55:43 +00:00
|
|
|
"Linter.CategoryManager",
|
2024-04-11 16:24:42 +00:00
|
|
|
"Linter.TotalsLookup"
|
2024-04-04 21:41:29 +00:00
|
|
|
]
|
|
|
|
}
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2016-11-15 19:31:45 +00:00
|
|
|
"JobClasses": {
|
2024-04-04 22:10:50 +00:00
|
|
|
"RecordLintJob": {
|
|
|
|
"class": "MediaWiki\\Linter\\RecordLintJob",
|
|
|
|
"services": [
|
2024-04-05 02:20:45 +00:00
|
|
|
"Linter.TotalsLookup",
|
2024-07-22 17:27:33 +00:00
|
|
|
"Linter.Database",
|
|
|
|
"Linter.CategoryManager"
|
2024-04-04 22:10:50 +00:00
|
|
|
]
|
|
|
|
}
|
2016-11-15 19:31:45 +00:00
|
|
|
},
|
2016-10-13 08:14:18 +00:00
|
|
|
"ResourceModules": {
|
|
|
|
"ext.linter.edit": {
|
|
|
|
"scripts": "ext.linter.edit.js",
|
|
|
|
"dependencies": [
|
|
|
|
"jquery.textSelection"
|
|
|
|
]
|
2024-10-31 17:04:21 +00:00
|
|
|
},
|
|
|
|
"ext.linter.styles": {
|
|
|
|
"styles": [
|
|
|
|
"special.less"
|
|
|
|
]
|
2016-10-13 08:14:18 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "modules",
|
|
|
|
"remoteExtPath": "Linter/modules"
|
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"LinterCategories": {
|
2020-05-12 00:53:32 +00:00
|
|
|
"value": {
|
|
|
|
"fostered": {
|
|
|
|
"dbid": 1,
|
|
|
|
"enabled": true,
|
2021-12-14 15:11:28 +00:00
|
|
|
"priority": "medium",
|
|
|
|
"no-params": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"obsolete-tag": {
|
|
|
|
"dbid": 2,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "low",
|
|
|
|
"has-name": true
|
|
|
|
},
|
|
|
|
"bogus-image-options": {
|
|
|
|
"dbid": 3,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "medium"
|
|
|
|
},
|
|
|
|
"missing-end-tag": {
|
|
|
|
"dbid": 4,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "low",
|
|
|
|
"has-name": true
|
|
|
|
},
|
|
|
|
"stripped-tag": {
|
|
|
|
"dbid": 5,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "low",
|
|
|
|
"has-name": true
|
|
|
|
},
|
|
|
|
"self-closed-tag": {
|
|
|
|
"dbid": 6,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"deletable-table-tag": {
|
|
|
|
"dbid": 7,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"misnested-tag": {
|
|
|
|
"dbid": 8,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "medium",
|
|
|
|
"has-name": true
|
|
|
|
},
|
|
|
|
"pwrap-bug-workaround": {
|
|
|
|
"dbid": 9,
|
|
|
|
"enabled": true,
|
2023-10-13 16:23:23 +00:00
|
|
|
"priority": "high"
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"tidy-whitespace-bug": {
|
|
|
|
"dbid": 10,
|
|
|
|
"enabled": true,
|
2023-10-13 16:23:23 +00:00
|
|
|
"priority": "high"
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"multi-colon-escape": {
|
|
|
|
"dbid": 11,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "medium"
|
|
|
|
},
|
|
|
|
"html5-misnesting": {
|
|
|
|
"dbid": 12,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"tidy-font-bug": {
|
|
|
|
"dbid": 13,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"multiple-unclosed-formatting-tags": {
|
|
|
|
"dbid": 14,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"unclosed-quotes-in-heading": {
|
|
|
|
"dbid": 15,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high",
|
2023-10-13 16:23:23 +00:00
|
|
|
"has-name": true
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"multiline-html-table-in-list": {
|
|
|
|
"dbid": 16,
|
|
|
|
"enabled": true,
|
2023-10-13 16:23:23 +00:00
|
|
|
"priority": "high"
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"misc-tidy-replacement-issues": {
|
|
|
|
"dbid": 17,
|
|
|
|
"enabled": true,
|
2023-10-13 16:23:23 +00:00
|
|
|
"priority": "high"
|
2020-05-12 00:53:32 +00:00
|
|
|
},
|
|
|
|
"wikilink-in-extlink": {
|
|
|
|
"dbid": 18,
|
|
|
|
"enabled": true,
|
2021-12-14 15:11:28 +00:00
|
|
|
"priority": "medium",
|
|
|
|
"no-params": true
|
2021-12-10 22:58:55 +00:00
|
|
|
},
|
|
|
|
"inline-media-caption": {
|
|
|
|
"dbid": 19,
|
2022-01-16 17:25:28 +00:00
|
|
|
"enabled": false,
|
2021-12-10 22:58:55 +00:00
|
|
|
"priority": "high",
|
|
|
|
"no-params": true
|
2023-05-01 17:19:50 +00:00
|
|
|
},
|
|
|
|
"large-tables": {
|
|
|
|
"dbid": 20,
|
2023-05-03 13:56:09 +00:00
|
|
|
"enabled": true,
|
|
|
|
"priority": "none"
|
2023-05-04 20:31:38 +00:00
|
|
|
},
|
|
|
|
"missing-end-tag-in-heading": {
|
|
|
|
"dbid": 21,
|
|
|
|
"enabled": true,
|
2023-12-01 22:16:21 +00:00
|
|
|
"priority": "low",
|
2023-05-04 20:31:38 +00:00
|
|
|
"has-name": true
|
2024-03-20 19:43:10 +00:00
|
|
|
},
|
|
|
|
"night-mode-unaware-background-color": {
|
|
|
|
"dbid": 22,
|
|
|
|
"enabled": true,
|
2024-06-27 21:13:25 +00:00
|
|
|
"priority": "low",
|
2024-04-04 22:22:46 +00:00
|
|
|
"no-params": true
|
2024-05-29 15:34:47 +00:00
|
|
|
},
|
|
|
|
"missing-image-alt-text": {
|
|
|
|
"dbid": 23,
|
2024-07-21 21:46:43 +00:00
|
|
|
"enabled": false,
|
2024-05-29 15:34:47 +00:00
|
|
|
"priority": "none"
|
2024-07-26 20:24:30 +00:00
|
|
|
},
|
|
|
|
"fostered-transparent": {
|
|
|
|
"dbid": 24,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "none",
|
|
|
|
"no-params": true
|
2024-09-17 23:08:39 +00:00
|
|
|
},
|
|
|
|
"duplicate-ids": {
|
|
|
|
"dbid": 25,
|
|
|
|
"enabled": true,
|
|
|
|
"priority": "high"
|
2020-05-12 00:53:32 +00:00
|
|
|
}
|
2016-12-15 01:07:40 +00:00
|
|
|
}
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2020-05-12 00:53:32 +00:00
|
|
|
"LinterStatsdSampleFactor": {
|
|
|
|
"value": false
|
2022-08-03 16:49:19 +00:00
|
|
|
},
|
Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.
Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.
However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.
Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.
Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-04-19 09:59:00 +00:00
|
|
|
"LinterParseOnDerivedDataUpdate": {
|
|
|
|
"value": true
|
2020-05-12 00:53:32 +00:00
|
|
|
}
|
2016-10-13 08:14:18 +00:00
|
|
|
},
|
2024-04-04 22:55:43 +00:00
|
|
|
"ServiceWiringFiles": [
|
|
|
|
"includes/ServiceWiring.php"
|
|
|
|
],
|
2020-05-12 00:53:32 +00:00
|
|
|
"manifest_version": 2
|
2016-10-13 08:14:18 +00:00
|
|
|
}
|