github / github/codeql

LGTM.com: Duplicate paths are listed multiple times

Ouverte
#8,632 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
false-positive
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.