From c877f85377cbf43c325a924dff566e2511142dbd Mon Sep 17 00:00:00 2001 From: Tibor Blenessy Date: Thu, 17 Aug 2023 14:34:18 +0200 Subject: [PATCH] SONARHTML-175 Update rule metadata with clean code taxonomy attributes (#249) --- .../rules/Web/AvoidCommentedOutCodeCheck.json | 6 ++++++ .../l10n/web/rules/Web/DoubleQuotesCheck.json | 6 ++++++ .../l10n/web/rules/Web/FileLengthCheck.html | 5 ++--- .../l10n/web/rules/Web/FileLengthCheck.json | 6 ++++++ .../sonar/l10n/web/rules/Web/HeaderCheck.json | 6 ++++++ .../web/rules/Web/IllegalNamespaceCheck.json | 6 ++++++ .../l10n/web/rules/Web/IllegalTabCheck.json | 6 ++++++ .../web/rules/Web/ImgWithoutAltCheck.json | 6 ++++++ .../web/rules/Web/LongJavaScriptCheck.json | 6 ++++++ .../web/rules/Web/MaxLineLengthCheck.json | 6 ++++++ ...seEventWithoutKeyboardEquivalentCheck.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S1134.html | 4 ++-- .../org/sonar/l10n/web/rules/Web/S1134.json | 8 +++++++- .../org/sonar/l10n/web/rules/Web/S1135.html | 19 ++++++++++++++++--- .../org/sonar/l10n/web/rules/Web/S1135.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S1436.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S1827.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S4084.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S4645.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5148.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5254.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5255.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5256.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5257.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5258.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5260.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5264.json | 6 ++++++ .../org/sonar/l10n/web/rules/Web/S5725.json | 6 ++++++ .../l10n/web/rules/Web/UnclosedTagCheck.json | 6 ++++++ .../web/rules/Web/UnifiedExpressionCheck.json | 6 ++++++ .../Web/UnsupportedTagsInHtml5Check.json | 6 ++++++ sonarpedia.json | 2 +- 32 files changed, 190 insertions(+), 10 deletions(-) diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/AvoidCommentedOutCodeCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/AvoidCommentedOutCodeCheck.json index 58b10b981..d01e4cd4c 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/AvoidCommentedOutCodeCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/AvoidCommentedOutCodeCheck.json @@ -1,6 +1,12 @@ { "title": "Sections of code should not be commented out", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "CLEAR" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/DoubleQuotesCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/DoubleQuotesCheck.json index 3d8853742..d9f776884 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/DoubleQuotesCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/DoubleQuotesCheck.json @@ -1,6 +1,12 @@ { "title": "Attributes should be quoted using double quotes rather than single ones", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "LOW" + }, + "attribute": "CONVENTIONAL" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.html index cc8ee8fa3..ab59359a8 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.html @@ -1,6 +1,5 @@

Why is this an issue?

-

A source file that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and, therefore, to -maintain.

+

When a source file grows too much, it can accumulate numerous responsibilities and become challenging to understand and maintain.

Above a specific threshold, refactor the file into smaller files whose code focuses on well-defined tasks. Those smaller files will be easier to -understand and easier to test.

+understand and test.

diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.json index 164d53f0b..b923d71f9 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/FileLengthCheck.json @@ -1,6 +1,12 @@ { "title": "Files should not have too many lines", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "FOCUSED" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json index 59f57806b..4e516dc7f 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/HeaderCheck.json @@ -1,6 +1,12 @@ { "title": "Track lack of copyright and license headers", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "HIGH" + }, + "attribute": "LAWFUL" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalNamespaceCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalNamespaceCheck.json index ec4eee0d1..becebf273 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalNamespaceCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalNamespaceCheck.json @@ -1,6 +1,12 @@ { "title": "Track uses of disallowed namespaces in XHTML documents", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "CONVENTIONAL" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalTabCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalTabCheck.json index cf98ec407..83d1be29f 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalTabCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/IllegalTabCheck.json @@ -1,6 +1,12 @@ { "title": "Tabulation characters should not be used", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "LOW" + }, + "attribute": "FORMATTED" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ImgWithoutAltCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ImgWithoutAltCheck.json index 5fadf5db6..7e2c24812 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ImgWithoutAltCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/ImgWithoutAltCheck.json @@ -1,6 +1,12 @@ { "title": "Image, area and button with image tags should have an \"alt\" attribute", "type": "BUG", + "code": { + "impacts": { + "RELIABILITY": "LOW" + }, + "attribute": "COMPLETE" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/LongJavaScriptCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/LongJavaScriptCheck.json index c304e86ec..f9870df3a 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/LongJavaScriptCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/LongJavaScriptCheck.json @@ -1,6 +1,12 @@ { "title": "Javascript scriptlets should not have too many lines of code", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "FOCUSED" + }, "status": "ready", "remediation": { "func": "Linear", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MaxLineLengthCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MaxLineLengthCheck.json index bb9feb057..26597209c 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MaxLineLengthCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MaxLineLengthCheck.json @@ -1,6 +1,12 @@ { "title": "Lines should not be too long", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "FORMATTED" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MouseEventWithoutKeyboardEquivalentCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MouseEventWithoutKeyboardEquivalentCheck.json index 55154ee07..1e973a6c2 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MouseEventWithoutKeyboardEquivalentCheck.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/MouseEventWithoutKeyboardEquivalentCheck.json @@ -1,6 +1,12 @@ { "title": "Mouse events should have corresponding keyboard events", "type": "BUG", + "code": { + "impacts": { + "RELIABILITY": "LOW" + }, + "attribute": "COMPLETE" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.html index 5ceb0539a..b5ea75cba 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.html @@ -2,7 +2,6 @@

Why is this an issue?

FIXME tags are commonly used to mark places where a bug is suspected, but which the developer wants to deal with later.

Sometimes the developer will not have the time or will simply forget to get back to that tag.

This rule is meant to track those tags and to ensure that they do not go unnoticed.

-

Noncompliant code example

 <html>
 <!-- FIXME support small device -->
@@ -10,7 +9,8 @@ 

Noncompliant code example

</html>

Resources

+

Documentation

diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.json index 00aef3d01..ed00cce4d 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.json +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1134.json @@ -1,6 +1,12 @@ { "title": "Track uses of \"FIXME\" tags", "type": "CODE_SMELL", + "code": { + "impacts": { + "MAINTAINABILITY": "MEDIUM" + }, + "attribute": "COMPLETE" + }, "status": "ready", "remediation": { "func": "Constant\/Issue", @@ -18,5 +24,5 @@ 546 ] }, - "quickfix": "unknown" + "quickfix": "infeasible" } diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.html index ca67df924..aac9fa03a 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.html @@ -1,7 +1,20 @@

Why is this an issue?

-

TODO tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.

-

Sometimes the developer will not have the time or will simply forget to get back to that tag.

-

This rule is meant to track those tags and to ensure that they do not go unnoticed.

+

Developers often use TOOO tags to mark areas in the code where additional work or improvements are needed but are not implemented +immediately. However, these TODO tags sometimes get overlooked or forgotten, leading to incomplete or unfinished code. This code smell +class aims to identify and address such unattended TODO tags to ensure a clean and maintainable codebase. This description will explore +why this is a problem and how it can be fixed to improve the overall code quality.

+

What is the potential impact?

+

Unattended TODO tags in code can have significant implications for the development process and the overall codebase.

+

Incomplete Functionality: When developers leave TODO tags without implementing the corresponding code, it results in incomplete +functionality within the software. This can lead to unexpected behavior or missing features, adversely affecting the end-user experience.

+

Missed Bug Fixes: If developers do not promptly address TODO tags, they might overlook critical bug fixes and security updates. +Delayed bug fixes can result in more severe issues and increase the effort required to resolve them later.

+

Impact on Collaboration: In team-based development environments, unattended TODO tags can hinder collaboration. Other team members +might not be aware of the intended changes, leading to conflicts or redundant efforts in the codebase.

+

Codebase Bloat: Accumulation of unattended TODO tags over time can clutter the codebase and make it difficult to distinguish between +work in progress and completed code. This bloat can make it challenging to maintain an organized and efficient codebase.

+

Addressing this code smell is essential to ensure a maintainable, readable, reliable codebase and promote effective collaboration among +developers.

Noncompliant code example

 <html>
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json
index 0246922de..1f6d301fb 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1135.json
@@ -1,6 +1,12 @@
 {
   "title": "Track uses of \"TODO\" tags",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "LOW"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1436.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1436.json
index 3992cce5e..2ff3b1a53 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1436.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1436.json
@@ -1,6 +1,12 @@
 {
   "title": "Track lack of required an element with the required \"id\"",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "MEDIUM"
+    },
+    "attribute": "CONVENTIONAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1827.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1827.json
index 3da9da99c..bd673d60d 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1827.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1827.json
@@ -1,6 +1,12 @@
 {
   "title": "Attributes deprecated  in HTML5 should not be used",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "MEDIUM"
+    },
+    "attribute": "CONVENTIONAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4084.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4084.json
index 45b7d48b7..1e15f31f0 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4084.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4084.json
@@ -1,6 +1,12 @@
 {
   "title": "Videos should have subtitles",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "MEDIUM"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4645.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4645.json
index 8ca01ae56..9a450cb53 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4645.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S4645.json
@@ -1,6 +1,12 @@
 {
   "title": "\u003cscript\u003e...\u003c\/script\u003e elements should not be nested",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "MEDIUM"
+    },
+    "attribute": "LOGICAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5148.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5148.json
index 00c707b0a..2752014bc 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5148.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5148.json
@@ -1,6 +1,12 @@
 {
   "title": "Authorizing an opened window to access back to the originating window is security-sensitive",
   "type": "SECURITY_HOTSPOT",
+  "code": {
+    "impacts": {
+      "SECURITY": "LOW"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.json
index e13fdaba6..d569f1945 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5254.json
@@ -1,6 +1,12 @@
 {
   "title": "\"\u003chtml\u003e\" element should have a language attribute",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "MEDIUM"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5255.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5255.json
index 3c7df9ec5..bcd1a948a 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5255.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5255.json
@@ -1,6 +1,12 @@
 {
   "title": "\"aria-label\" or \"aria-labelledby\" attributes should be used to differentiate similar elements",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "MEDIUM"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5256.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5256.json
index f7792fe6c..78be540a2 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5256.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5256.json
@@ -1,6 +1,12 @@
 {
   "title": "Tables should have headers",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "MEDIUM"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5257.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5257.json
index ae8a3147b..b6d218236 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5257.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5257.json
@@ -1,6 +1,12 @@
 {
   "title": "HTML \"\u003ctable\u003e\" should not be used for layout purposes",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "MEDIUM"
+    },
+    "attribute": "LOGICAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5258.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5258.json
index 94524344f..276f7d8c9 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5258.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5258.json
@@ -1,6 +1,12 @@
 {
   "title": "Tables used for layout should not include semantic markup",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "HIGH"
+    },
+    "attribute": "LOGICAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5260.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5260.json
index 5f75c81f4..dea96adce 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5260.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5260.json
@@ -1,6 +1,12 @@
 {
   "title": "Table cells should reference their headers",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "HIGH"
+    },
+    "attribute": "CLEAR"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5264.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5264.json
index 5611dfa5f..f31d14c7e 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5264.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5264.json
@@ -1,6 +1,12 @@
 {
   "title": "\"\u003cobject\u003e\" tags should provide an alternative content",
   "type": "CODE_SMELL",
+  "code": {
+    "impacts": {
+      "MAINTAINABILITY": "LOW"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5725.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5725.json
index 839d3e212..716518cf9 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5725.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S5725.json
@@ -1,6 +1,12 @@
 {
   "title": "Using remote artifacts without integrity checks is security-sensitive",
   "type": "SECURITY_HOTSPOT",
+  "code": {
+    "impacts": {
+      "SECURITY": "LOW"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnclosedTagCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnclosedTagCheck.json
index 7875d9532..b9e874907 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnclosedTagCheck.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnclosedTagCheck.json
@@ -1,6 +1,12 @@
 {
   "title": "All HTML tags should be closed ",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "LOW"
+    },
+    "attribute": "COMPLETE"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnifiedExpressionCheck.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnifiedExpressionCheck.json
index 37c61c77a..4ca4d4708 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnifiedExpressionCheck.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnifiedExpressionCheck.json
@@ -1,6 +1,12 @@
 {
   "title": "JSF expressions should be syntactically valid",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "MEDIUM"
+    },
+    "attribute": "LOGICAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnsupportedTagsInHtml5Check.json b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnsupportedTagsInHtml5Check.json
index 2958e6107..cf7e1b97d 100644
--- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnsupportedTagsInHtml5Check.json
+++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/UnsupportedTagsInHtml5Check.json
@@ -1,6 +1,12 @@
 {
   "title": "Elements deprecated in HTML5 should not be used",
   "type": "BUG",
+  "code": {
+    "impacts": {
+      "RELIABILITY": "MEDIUM"
+    },
+    "attribute": "CONVENTIONAL"
+  },
   "status": "ready",
   "remediation": {
     "func": "Constant\/Issue",
diff --git a/sonarpedia.json b/sonarpedia.json
index a6b04ad9c..82506e7d5 100644
--- a/sonarpedia.json
+++ b/sonarpedia.json
@@ -3,7 +3,7 @@
   "languages": [
     "HTML"
   ],
-  "latest-update": "2023-06-09T10:45:41.371487Z",
+  "latest-update": "2023-08-16T20:51:07.325554900Z",
   "options": {
     "no-language-in-filenames": true,
     "preserve-filenames": true