mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 15:36:52 +00:00
e6a510fbed
This avoids a duplicate parse with DiscussionTools (T376325) and also reduces some redundancy by using the metrics-gathering code from ParserOutput instead of having to clone it here. Finally, it allows the parse to use the output of a previous parse for selective update. Bug: T376325 Follows-Up: I64a4556a74da4f735a5b562070c21310ecda36d1 Change-Id: I11386e307caaa9fce34870b08bd4dce4c5e6eb25
264 lines
5.1 KiB
JSON
264 lines
5.1 KiB
JSON
{
|
|
"name": "Linter",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Linter",
|
|
"author": [
|
|
"Kunal Mehta",
|
|
"Arlo Breault",
|
|
"Subramanya Sastry"
|
|
],
|
|
"descriptionmsg": "linter-desc",
|
|
"type": "specialpage",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.43"
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Linter\\": "includes/"
|
|
},
|
|
"MessagesDirs": {
|
|
"Linter": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"LinterAlias": "Linter.alias.php"
|
|
},
|
|
"HookHandlers": {
|
|
"main": {
|
|
"class": "MediaWiki\\Linter\\Hooks",
|
|
"services": [
|
|
"LinkRenderer",
|
|
"JobQueueGroup",
|
|
"WikiPageFactory",
|
|
"ParserOutputAccess",
|
|
"Linter.CategoryManager",
|
|
"Linter.TotalsLookup",
|
|
"Linter.Database",
|
|
"MainConfig"
|
|
]
|
|
},
|
|
"schema": {
|
|
"class": "MediaWiki\\Linter\\SchemaHooks"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"LoadExtensionSchemaUpdates": "schema",
|
|
"BeforePageDisplay": "main",
|
|
"APIQuerySiteInfoGeneralInfo": "main",
|
|
"InfoAction": "main",
|
|
"WikiPageDeletionUpdates": "main",
|
|
"RevisionFromEditComplete": "main",
|
|
"ParserLogLinterData": "main",
|
|
"RevisionDataUpdates": "main"
|
|
},
|
|
"APIListModules": {
|
|
"linterrors": {
|
|
"class": "MediaWiki\\Linter\\ApiQueryLintErrors",
|
|
"services": [
|
|
"Linter.CategoryManager"
|
|
]
|
|
}
|
|
},
|
|
"APIMetaModules": {
|
|
"linterstats": {
|
|
"class": "MediaWiki\\Linter\\ApiQueryLinterStats",
|
|
"services": [
|
|
"Linter.TotalsLookup"
|
|
]
|
|
}
|
|
},
|
|
"SpecialPages": {
|
|
"LintErrors": {
|
|
"class": "MediaWiki\\Linter\\SpecialLintErrors",
|
|
"services": [
|
|
"NamespaceInfo",
|
|
"TitleParser",
|
|
"LinkCache",
|
|
"PermissionManager",
|
|
"Linter.CategoryManager",
|
|
"Linter.TotalsLookup"
|
|
]
|
|
}
|
|
},
|
|
"JobClasses": {
|
|
"RecordLintJob": {
|
|
"class": "MediaWiki\\Linter\\RecordLintJob",
|
|
"services": [
|
|
"Linter.TotalsLookup",
|
|
"Linter.Database",
|
|
"Linter.CategoryManager"
|
|
]
|
|
}
|
|
},
|
|
"ResourceModules": {
|
|
"ext.linter.edit": {
|
|
"scripts": "ext.linter.edit.js",
|
|
"dependencies": [
|
|
"jquery.textSelection"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "Linter/modules"
|
|
},
|
|
"config": {
|
|
"LinterCategories": {
|
|
"value": {
|
|
"fostered": {
|
|
"dbid": 1,
|
|
"enabled": true,
|
|
"priority": "medium",
|
|
"no-params": true
|
|
},
|
|
"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",
|
|
"has-name": true
|
|
},
|
|
"deletable-table-tag": {
|
|
"dbid": 7,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true
|
|
},
|
|
"misnested-tag": {
|
|
"dbid": 8,
|
|
"enabled": true,
|
|
"priority": "medium",
|
|
"has-name": true
|
|
},
|
|
"pwrap-bug-workaround": {
|
|
"dbid": 9,
|
|
"enabled": true,
|
|
"priority": "high"
|
|
},
|
|
"tidy-whitespace-bug": {
|
|
"dbid": 10,
|
|
"enabled": true,
|
|
"priority": "high"
|
|
},
|
|
"multi-colon-escape": {
|
|
"dbid": 11,
|
|
"enabled": true,
|
|
"priority": "medium"
|
|
},
|
|
"html5-misnesting": {
|
|
"dbid": 12,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true
|
|
},
|
|
"tidy-font-bug": {
|
|
"dbid": 13,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true
|
|
},
|
|
"multiple-unclosed-formatting-tags": {
|
|
"dbid": 14,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true
|
|
},
|
|
"unclosed-quotes-in-heading": {
|
|
"dbid": 15,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true
|
|
},
|
|
"multiline-html-table-in-list": {
|
|
"dbid": 16,
|
|
"enabled": true,
|
|
"priority": "high"
|
|
},
|
|
"misc-tidy-replacement-issues": {
|
|
"dbid": 17,
|
|
"enabled": true,
|
|
"priority": "high"
|
|
},
|
|
"wikilink-in-extlink": {
|
|
"dbid": 18,
|
|
"enabled": true,
|
|
"priority": "medium",
|
|
"no-params": true
|
|
},
|
|
"inline-media-caption": {
|
|
"dbid": 19,
|
|
"enabled": false,
|
|
"priority": "high",
|
|
"no-params": true
|
|
},
|
|
"large-tables": {
|
|
"dbid": 20,
|
|
"enabled": true,
|
|
"priority": "none"
|
|
},
|
|
"missing-end-tag-in-heading": {
|
|
"dbid": 21,
|
|
"enabled": true,
|
|
"priority": "low",
|
|
"has-name": true
|
|
},
|
|
"night-mode-unaware-background-color": {
|
|
"dbid": 22,
|
|
"enabled": true,
|
|
"priority": "low",
|
|
"no-params": true
|
|
},
|
|
"missing-image-alt-text": {
|
|
"dbid": 23,
|
|
"enabled": false,
|
|
"priority": "none"
|
|
},
|
|
"fostered-transparent": {
|
|
"dbid": 24,
|
|
"enabled": true,
|
|
"priority": "none",
|
|
"no-params": true
|
|
},
|
|
"duplicate-ids": {
|
|
"dbid": 25,
|
|
"enabled": true,
|
|
"priority": "high"
|
|
}
|
|
}
|
|
},
|
|
"LinterStatsdSampleFactor": {
|
|
"value": false
|
|
},
|
|
"LinterParseOnDerivedDataUpdate": {
|
|
"value": true
|
|
}
|
|
},
|
|
"ServiceWiringFiles": [
|
|
"includes/ServiceWiring.php"
|
|
],
|
|
"manifest_version": 2
|
|
}
|