False positive Web:AvoidCommentedOutCodeCheck in thymeleaf template

  • Enterprise Edition
  • Version 7.9.2 (build 30863)

in thymeleaf templates we use @thymesVar annotation to instruct the IDE (intellij) the class of passed in variables

<!--/* @thymesVar id="users" type="java.util.List<my.namespace.User>" */-->
<tr th:each="user: ${users}">
    <td th:text="${user.getLoginName()}"></td>
    <td th:text="${user.getDisplayName()}"></td>

these are coming up with Web:AvoidCommentedOutCodeCheck code smells.

Hello @Daniel-Garcia

and welcome to the community.
Indeed, this annotation parameter should not be considered as commented out code. I have created a ticket to adjust the rule implementation. Thanks a lot for your contribution.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.