LGTM.com - false positive: "Duplicate HTML element attributes" caused by valid Django template tags
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
**Description of the false positive**
```html
{% csrf_token %}
```
This is valid Django template HTML with no duplicate attributes, however LGTM reports it as having duplicate tags due to it seeing `{%` and `%}` appear multiple times in a single opening tag.
**URL to the alert on the project page on LGTM.com**
https://lgtm.com/projects/g/ArchiveBox/ArchiveBox/snapshot/665e2817780d54eb2e1540fd80e48aeef9950775/files/archivebox/templates/admin/private_index_grid.html#L61

**Possibly related PRs/Issues:**
- https://github.com/github/codeql/pull/5236
- https://github.com/github/codeql/issues/5224
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.