Add <th> headers to API doc tables, ignore css:S4662 for Tailwind @source directive

- Add <thead>/<th> to rate limiting and error codes tables in doc.html.twig
- Ignore SonarQube css:S4662 rule on SCSS files (Tailwind v4 @source)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-02 14:01:35 +02:00
parent 8eb7d74445
commit 4f055af3f1
2 changed files with 13 additions and 0 deletions

View File

@@ -14,3 +14,6 @@ sonar.docker.hadolint.reportPaths=hadolint-dev.json,hadolint-prod.json
sonar.dependencyCheck.jsonReportPath=dependency-check-report.json
sonar.dependencyCheck.htmlReportPath=dependency-check-report.html
sonar.cpd.exclusions=templates/pdf/**
sonar.issue.ignore.multicriteria=e1
sonar.issue.ignore.multicriteria.e1.ruleKey=css:S4662
sonar.issue.ignore.multicriteria.e1.resourceKey=assets/**/*.scss

View File

@@ -257,12 +257,17 @@
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">{{ endpoint.extra.title }}</p>
<div class="border-2 border-red-200 bg-red-50 p-4">
<table class="w-full text-xs">
<thead>
<tr><th class="py-1.5 text-left font-black uppercase text-[10px] tracking-widest text-red-800 pr-4">Code</th><th class="py-1.5 text-left font-black uppercase text-[10px] tracking-widest text-red-800">Description</th></tr>
</thead>
<tbody>
{% for code, desc in endpoint.extra.items %}
<tr class="{{ not loop.last ? 'border-b border-red-200' : '' }}">
<td class="py-1.5 font-mono font-bold text-red-700 pr-4">{{ code }}</td>
<td class="py-1.5 font-bold text-red-600">{{ desc }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
@@ -297,6 +302,10 @@
<div class="border-2 border-gray-200 p-4">
<p class="text-[10px] font-black uppercase tracking-widest text-gray-400 mb-2">Headers de rate limit</p>
<table class="w-full text-xs">
<thead>
<tr><th class="py-2 text-left font-black uppercase text-[10px] tracking-widest text-gray-400">Header</th><th class="py-2 text-left font-black uppercase text-[10px] tracking-widest text-gray-400">Description</th></tr>
</thead>
<tbody>
<tr class="border-b border-gray-100">
<td class="py-2 font-mono font-bold text-gray-600">X-RateLimit-Limit</td>
<td class="py-2 font-bold text-gray-500">Nombre max de requetes par fenetre</td>
@@ -309,6 +318,7 @@
<td class="py-2 font-mono font-bold text-gray-600">Retry-After</td>
<td class="py-2 font-bold text-gray-500">Secondes avant la prochaine fenetre (si 429)</td>
</tr>
</tbody>
</table>
</div>
</div>