github / github/codeql

LGTM.com - false positive: "Duplicate HTML element attributes" caused by valid Django template tags

未關閉
#5,296 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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

![image](https://user-images.githubusercontent.com/511499/109436156-37c78f00-79ec-11eb-9a8a-7a1f79c9bf0c.png)

**Possibly related PRs/Issues:**

- https://github.com/github/codeql/pull/5236
- https://github.com/github/codeql/issues/5224

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。