<!-- no warning but ugly -->
<a th:href="${ price.provider.path }">[[${ price.provider.name }]]</a>
<a th:href="${ price.provider.path }">[[#{ price.provider.name }]]</a>
<!-- raises a warning -->
<a th:href="${ price.provider.path }" th:text="${ price.provider.name }"></a>
<a th:href="${ price.provider.path }" th:text="#{ price.provider.name }"></a>
OS
Windows 11 Pro
Version 23H2
OS build 22631.3296
Windows Feature Experience Pack 1000.22687.1000.0
IDE
Spring Tool Suite 4
Version: 4.22.0.RELEASE
Build Id: 202403071427
Revision: 44291b464093d161f115d8e16059e5272ed3c81d
Templating engine
thymeleaf 3.1.2.RELEASE
https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf-spring6
Java
openjdk version “17.0.7” 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
SonarLint
SonarLint for Eclipse 10.0.1.81733 org.sonarlint.eclipse.feature.feature.group
P.S.
I had to type in rule ID because it’s not available anywhere for copy/paste and that was unpleasant job.