github / github/codeql

LGTM.com: Duplicate paths are listed multiple times

Đang mở
#8,632 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
false-positive
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**Description of the false positive**

When a `path-problem` query selects multiple source code locations in the message, the paths that are included in that query result get rendered multiple times.

https://lgtm.com/query/1629163930165584076/

When viewing the results the following is rendered, showing that there are 3 source locations as "directory usage here".

![Screen Shot 2022-03-31 at 11 48 45 AM](https://user-images.githubusercontent.com/1323708/161097672-d82ff1aa-b295-4ab3-8be7-59bac1ca3e30.png)

When viewing the paths, the paths are all exactly the same.
![Screen Shot 2022-03-31 at 11 49 05 AM](https://user-images.githubusercontent.com/1323708/161097700-fbe2362f-2fca-46c4-aa18-801f65caa8da.png)

**Proposed Fix**

De-duplicate paths that are 100% equivalent so that only the minimum number of paths are shown.

**Potential Other Bugged Locations**

I haven't checked if this same rendering issue exists on GitHub.com's path-viewer, but I'd imagine that the issue would potentially exist there as well.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.