mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-13 17:57:15 +00:00
6aa4cdeba9
* Tag and Template search is enabled using config variable 'LinterUserInterfaceTagAndTemplateStage' and also checks for the linter table column 'linter_tag' to exist to protect the report code from error if the column is absent. As the linter table alter maintenance added both the linter_tag and linter_template at the same time, there is no reason to check both. The user interface code does not check for the field presence only the config variable. * This code depends on the recordLintJob code writing the tag and template data which is enabled by the config variable 'LinterWriteTagAndTemplateColumnsStage' and also assumes the data migration maintenance script migrateTagTemplate.php has been run to populate linter error records created prior to the table alter and the write code being enabled. Bug: T175177 Change-Id: I2f951dfcd34e3dc6ca17e8754cfaeba8baa3e835
212 lines
4.3 KiB
JSON
212 lines
4.3 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.38.0"
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Linter\\": "includes/"
|
|
},
|
|
"MessagesDirs": {
|
|
"Linter": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"LinterAlias": "Linter.alias.php"
|
|
},
|
|
"HookHandlers": {
|
|
"main": {
|
|
"class": "MediaWiki\\Linter\\Hooks",
|
|
"services": [
|
|
"LinkRenderer"
|
|
]
|
|
},
|
|
"schema": {
|
|
"class": "MediaWiki\\Linter\\SchemaHooks"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"LoadExtensionSchemaUpdates": "schema",
|
|
"BeforePageDisplay": "main",
|
|
"APIQuerySiteInfoGeneralInfo": "main",
|
|
"InfoAction": "main",
|
|
"WikiPageDeletionUpdates": "main",
|
|
"RevisionFromEditComplete": "main",
|
|
"ParserLogLinterData": "main"
|
|
},
|
|
"APIListModules": {
|
|
"linterrors": "MediaWiki\\Linter\\ApiQueryLintErrors"
|
|
},
|
|
"APIMetaModules": {
|
|
"linterstats": "MediaWiki\\Linter\\ApiQueryLinterStats"
|
|
},
|
|
"SpecialPages": {
|
|
"LintErrors": "MediaWiki\\Linter\\SpecialLintErrors"
|
|
},
|
|
"JobClasses": {
|
|
"RecordLintJob": "MediaWiki\\Linter\\RecordLintJob"
|
|
},
|
|
"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,
|
|
"parser-migration": true
|
|
},
|
|
"deletable-table-tag": {
|
|
"dbid": 7,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true,
|
|
"parser-migration": true
|
|
},
|
|
"misnested-tag": {
|
|
"dbid": 8,
|
|
"enabled": true,
|
|
"priority": "medium",
|
|
"has-name": true
|
|
},
|
|
"pwrap-bug-workaround": {
|
|
"dbid": 9,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"parser-migration": true
|
|
},
|
|
"tidy-whitespace-bug": {
|
|
"dbid": 10,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"parser-migration": true
|
|
},
|
|
"multi-colon-escape": {
|
|
"dbid": 11,
|
|
"enabled": true,
|
|
"priority": "medium"
|
|
},
|
|
"html5-misnesting": {
|
|
"dbid": 12,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true,
|
|
"parser-migration": true
|
|
},
|
|
"tidy-font-bug": {
|
|
"dbid": 13,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true,
|
|
"parser-migration": true
|
|
},
|
|
"multiple-unclosed-formatting-tags": {
|
|
"dbid": 14,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true,
|
|
"parser-migration": true
|
|
},
|
|
"unclosed-quotes-in-heading": {
|
|
"dbid": 15,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"has-name": true,
|
|
"parser-migration": true
|
|
},
|
|
"multiline-html-table-in-list": {
|
|
"dbid": 16,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"parser-migration": true
|
|
},
|
|
"misc-tidy-replacement-issues": {
|
|
"dbid": 17,
|
|
"enabled": true,
|
|
"priority": "high",
|
|
"parser-migration": true
|
|
},
|
|
"wikilink-in-extlink": {
|
|
"dbid": 18,
|
|
"enabled": true,
|
|
"priority": "medium",
|
|
"no-params": true
|
|
},
|
|
"inline-media-caption": {
|
|
"dbid": 19,
|
|
"enabled": false,
|
|
"priority": "high",
|
|
"no-params": true
|
|
}
|
|
}
|
|
},
|
|
"LinterStatsdSampleFactor": {
|
|
"value": false
|
|
},
|
|
"LinterWriteNamespaceColumnStage": {
|
|
"value": false
|
|
},
|
|
"LinterUseNamespaceColumnStage": {
|
|
"value": false
|
|
},
|
|
"LinterWriteTagAndTemplateColumnsStage": {
|
|
"value": false
|
|
},
|
|
"LinterUserInterfaceTagAndTemplateStage": {
|
|
"value": false
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|