LGTM.com - false positive: "Duplicate HTML element attributes" caused by valid Django template tags
未關閉
false-positive
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
**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
貢獻指南
評估
這個 Issue 還沒有評估資料。