SonarQube version: 9.2.4 Community Edition
Rule: Web:S5256 - Tables should have headers
Code: This is inside a .NET 6 MVC *.cshtml file
<table>
<thead>
<tr>
@{
for (int i=0; i < Model.Label.Count; i++) {
<th>@Model.Label[i].name</th>
}
}
</tr>
</thead>
...
SonarQube does not see the elements inside the for loop, and raises S5256 as a major bug because of supposedly missing table headers.