From b9f1d478e2c97a440b70a33cff78f768ee97a5ee Mon Sep 17 00:00:00 2001 From: Moh'd Khier Abualruz Date: Thu, 4 May 2023 22:31:38 +0200 Subject: [PATCH] Unclosed tags in article headings - divide the 'missing-end-tag' into 2 categories: * 'missing-end-tag': kept the same ( minus the new category results) * 'missing-end-tag-in-heading': high priority depends-on: I8397a24e85ca9f5a9ce6413dec5efa8c401a9960 Bug: T308398 Change-Id: I5738abd522bf5248e4b7b1255920055182e6261f --- extension.json | 6 ++++++ i18n/en.json | 3 +++ i18n/qqq.json | 3 +++ 3 files changed, 12 insertions(+) diff --git a/extension.json b/extension.json index 7e8ae3be..42b05dfd 100644 --- a/extension.json +++ b/extension.json @@ -193,6 +193,12 @@ "dbid": 20, "enabled": true, "priority": "none" + }, + "missing-end-tag-in-heading": { + "dbid": 21, + "enabled": true, + "priority": "none", + "has-name": true } } }, diff --git a/i18n/en.json b/i18n/en.json index ebc0b15d..cb6f47a9 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -21,6 +21,8 @@ "linter-category-misnested-tag-desc": "These pages have misnested tags that could be fixed.", "linter-category-missing-end-tag": "Missing end tag", "linter-category-missing-end-tag-desc": "These pages have missing end tags.", + "linter-category-missing-end-tag-in-heading": "Missing end tag in heading", + "linter-category-missing-end-tag-in-heading-desc": "These pages have missing end tags in headings.", "linter-category-multi-colon-escape": "Multi colon escape", "linter-category-multi-colon-escape-desc": "These pages have links prefixed with multiple colons.", "linter-category-multiline-html-table-in-list": "Multiline table in list", @@ -76,6 +78,7 @@ "linter-pager-misc-tidy-replacement-issues-details": "Miscellaneous markup errors", "linter-pager-misnested-tag-details": "Misnested tag which should be properly nested", "linter-pager-missing-end-tag-details": "Missing end tag", + "linter-pager-missing-end-tag-in-heading-details": "Missing end tag in heading", "linter-pager-multi-colon-escape-details": "Multi colon escape", "linter-pager-multiline-html-table-in-list-details": "Multiline HTML5 table inside a list", "linter-pager-multiple-unclosed-formatting-tags-details": "Multiple unclosed formatting tags on the page", diff --git a/i18n/qqq.json b/i18n/qqq.json index 4b10615a..85daedf5 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -29,6 +29,8 @@ "linter-category-misnested-tag-desc": "Description of category", "linter-category-missing-end-tag": "Name of lint error category. See [[:mw:Help:Lint errors/missing-end-tag]]", "linter-category-missing-end-tag-desc": "Description of category\n\nSimilar messages:\n* {{msg-mw|Linter-category-bogus-image-options-desc}}\n* {{msg-mw|Linter-category-deletable-table-tag-desc}}\n* {{msg-mw|Linter-category-fostered-desc}}\netc.", + "linter-category-missing-end-tag-in-heading": "Name of lint error category. See [[:mw:Help:Lint errors/missing-end-tag-in-heading]]", + "linter-category-missing-end-tag-in-heading-desc": "Description of category\n\nSimilar messages:\n* {{msg-mw|Linter-category-bogus-image-options-desc}}\n* {{msg-mw|Linter-category-deletable-table-tag-desc}}\n* {{msg-mw|Linter-category-fostered-desc}}\netc.", "linter-category-multi-colon-escape": "Name of lint error category. See [[:mw:Help:Lint errors/multi-colon-escape]]", "linter-category-multi-colon-escape-desc": "Description of category\n\nSimilar messages:\n* {{msg-mw|Linter-category-bogus-image-options-desc}}\n* {{msg-mw|Linter-category-deletable-table-tag-desc}}\n* {{msg-mw|Linter-category-fostered-desc}}\netc.", "linter-category-multiline-html-table-in-list": "Name of lint error category. See [[:mw:Help:Lint errors/multiline-html-table-in-list]]", @@ -84,6 +86,7 @@ "linter-pager-misc-tidy-replacement-issues-details": "Table column heading", "linter-pager-misnested-tag-details": "Table column heading", "linter-pager-missing-end-tag-details": "Table column heading", + "linter-pager-missing-end-tag-in-heading-details": "Table column heading", "linter-pager-multi-colon-escape-details": "Table column heading", "linter-pager-multiline-html-table-in-list-details": "Table column heading", "linter-pager-multiple-unclosed-formatting-tags-details": "Table column heading.",