jenkins-bot has submitted this change and it was merged.

Change subject: Display self-closed tags
......................................................................


Display self-closed tags

Change-Id: I6c084a6c72114b57a21cd367d398c673c5c4d991
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M includes/LintErrorsPager.php
4 files changed, 10 insertions(+), 3 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index ce616c9..ee3efe6 100644
--- a/extension.json
+++ b/extension.json
@@ -55,7 +55,8 @@
                        "obsolete-tag": true,
                        "bogus-image-options": true,
                        "missing-end-tag": true,
-                       "stripped-tag": true
+                       "stripped-tag": true,
+                       "self-closed-tag": true
                },
                "LinterSubmitterWhitelist": {
                        "127.0.0.1": true
diff --git a/i18n/en.json b/i18n/en.json
index 1d2f2d5..66bd5fa 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -13,6 +13,7 @@
        "linter-pager-bogus-image-options-details": "Bogus file option",
        "linter-pager-missing-end-tag-details": "Missing end tag",
        "linter-pager-stripped-tag-details": "Stripped tag",
+       "linter-pager-self-closed-tag-details": "Self-closed tag",
        "linter-category-fostered": "Fostered content",
        "linter-category-fostered-desc": "These pages have fostered content.",
        "linter-category-obsolete-tag": "Obsolete HTML tags",
@@ -23,6 +24,8 @@
        "linter-category-missing-end-tag-desc": "These pages have missing end 
tags.",
        "linter-category-stripped-tag": "Stripped tags",
        "linter-category-stripped-tag-desc": "These pages have stripped tags.",
+       "linter-category-self-closed-tag": "Self-closed tags",
+       "linter-category-self-closed-tag-desc": "These pages have self-closed 
tags.",
        "linker-page-title-edit": "$1 ($2)",
        "linker-page-edit": "edit",
        "apihelp-query+linterrors-description": "Get a list of lint errors",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 3b8a6d7..07d511a 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -15,6 +15,7 @@
        "linter-pager-bogus-image-options-details": "Table column heading",
        "linter-pager-missing-end-tag-details": "Table column heading",
        "linter-pager-stripped-tag-details": "Table column heading",
+       "linter-pager-self-closed-tag-details": "Table column heading",
        "linter-category-fostered": "Name of lint error category. See 
[[:mw:Help:Extension:Linter/fostered]]",
        "linter-category-fostered-desc": "Description of category.",
        "linter-category-obsolete-tag": "Name of lint error category. See 
[[:mw:Help:Extension:Linter/obsolete-tag]]",
@@ -23,8 +24,10 @@
        "linter-category-bogus-image-options-desc": "Description of category",
        "linter-category-missing-end-tag": "Name of lint error category. See 
[[:mw:Help:Extension:Linter/missing-end-tag]]",
        "linter-category-missing-end-tag-desc": "Description of category",
-       "linter-category-stripped-tag": "Name of lint error category",
+       "linter-category-stripped-tag": "Name of lint error category. See 
[[:mw:Help:Extension:Linter/stripped-tag]]",
        "linter-category-stripped-tag-desc": "Description of category",
+       "linter-category-self-closed-tag": "Name of lint error category. See 
[[:mw:Help:Extension:Linter/self-closed-tag]]",
+       "linter-category-self-closed-tag-desc": "Description of category",
        "linker-page-title-edit": "Used in a table cell. $1 is a link to the 
page, $2 is a link to edit that page, the link text is 
{{msg-mw|linker-page-edit}}",
        "linker-page-edit": "Link text for edit link in 
{{msg-mw|linker-page-title-edit}} and 
{{msg-mw|linker-page-title-edit-template}}\n{{Identical|Edit}}",
        "apihelp-query+linterrors-description": 
"{{doc-apihelp-description|query+linterrors}}",
diff --git a/includes/LintErrorsPager.php b/includes/LintErrorsPager.php
index 56abe1c..a9992f0 100644
--- a/includes/LintErrorsPager.php
+++ b/includes/LintErrorsPager.php
@@ -95,7 +95,7 @@
 
                                return $this->msg( 'linker-page-title-edit' 
)->rawParams( $viewLink, $editLink )->escaped();
                        case 'details':
-                               $hasNameCats = [ 'obsolete-tag', 
'missing-end-tag' ];
+                               $hasNameCats = [ 'obsolete-tag', 
'missing-end-tag', 'self-closed-tag' ];
                                if ( in_array( $this->category, $hasNameCats ) 
&& isset( $lintError->params['name'] ) ) {
                                        return Html::element( 'code', [], 
$lintError->params['name'] );
                                } elseif ( $this->category === 
'bogus-image-options' && isset( $lintError->params['items'] ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/321812
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6c084a6c72114b57a21cd367d398c673c5c4d991
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Linter
Gerrit-Branch: master
Gerrit-Owner: Arlolra <abrea...@wikimedia.org>
Gerrit-Reviewer: Arlolra <abrea...@wikimedia.org>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to