github / github/codeql

LGTM.com: Duplicate paths are listed multiple times

Abierto
#8,632 1 comentario 0 reacciones 0 asignados Ver en GitHub
false-positive
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.