diff --git a/README.md b/README.md index 7290504e3..869d581b3 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,6 @@ The "Ruling Test" are an integration test suite which launches the analysis of a ### License -Copyright 2010-2022 SonarSource. +Copyright 2010-2024 SonarSource. Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt) diff --git a/sonar-html-plugin/src/main/java/org/sonar/plugins/html/checks/accessibility/NoNoninteractiveElementToInteractiveRoleCheck.java b/sonar-html-plugin/src/main/java/org/sonar/plugins/html/checks/accessibility/NoNoninteractiveElementToInteractiveRoleCheck.java index 02ae7a72d..b804d26cc 100644 --- a/sonar-html-plugin/src/main/java/org/sonar/plugins/html/checks/accessibility/NoNoninteractiveElementToInteractiveRoleCheck.java +++ b/sonar-html-plugin/src/main/java/org/sonar/plugins/html/checks/accessibility/NoNoninteractiveElementToInteractiveRoleCheck.java @@ -21,7 +21,6 @@ import static org.sonar.plugins.html.api.HtmlConstants.hasKnownHTMLTag; import static org.sonar.plugins.html.api.HtmlConstants.isNonInteractiveElement; -import java.util.Locale; import org.sonar.check.Rule; import org.sonar.plugins.html.checks.AbstractPageCheck; import org.sonar.plugins.html.node.TagNode; 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 fae7b3576..4eb518c7c 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,8 +1,8 @@

Why is this an issue?

Developers often use TODO 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.

+immediately. However, these TODO tags sometimes get overlooked or forgotten, leading to incomplete or unfinished code. This rule aims to +identify and address unattended TODO tags to ensure a clean and maintainable codebase. This description explores 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 @@ -11,8 +11,8 @@

What is the potential impact?

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.

+

Codebase Bloat: The 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

diff --git a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6842.html b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6842.html index 61a675550..afad369dc 100644 --- a/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6842.html +++ b/sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S6842.html @@ -17,7 +17,7 @@

How to fix it

Code examples

Noncompliant code example

-<li role="button">Foo</li>; // Noncompliant; "li" isn't interactive, but "button" is
+<li role="button">Foo</li> <!--Noncompliant; "li" isn't interactive, but "button" is-->
 

Compliant solution

diff --git a/sonarpedia.json b/sonarpedia.json
index 894884817..6443cbaee 100644
--- a/sonarpedia.json
+++ b/sonarpedia.json
@@ -3,7 +3,7 @@
   "languages": [
     "HTML"
   ],
-  "latest-update": "2024-01-26T08:34:26.980892Z",
+  "latest-update": "2024-02-23T15:02:03.435402Z",
   "options": {
     "no-language-in-filenames": true,
     "preserve-filenames": true