Operating system: Windows 11
SonarLint plugin version: SonarLint for Eclipse 7.4.0.46482
Please I need help on how to avoid warnings about missing TH tag. Includes that I mention does have TR, TH and TD elements, but this is visible after compile time, of course.
Multiple annotations found at this line:
Add <th> headers to this <table>
Start tag of element <table>
Code snippet that triggers warnings:
<table class="EditTable">
<caption th:text="#{ captions.TableCaption }"></caption>
<th:block th:insert="/modules/photos.html" />
<th:block th:insert="/modules/address.html"/>
<th:block th:insert="/modules/phoneEmailUrl.html"/>
<th:block th:insert="/modules/objectStatusDropdown.html" />
<th:block th:insert="/modules/dateCreatedLastUpdated.html" />
</table>
The problem is I have more than one table and not each table is having all includes. Some tables have only address, some tables have other includes not mentioned here. Duplicating code by copy/pasting incude contents is not an option because there are more than 15 different tables with many includes.