github / github/codeql

Java: Some JavadocTag line numbers are wrong

Aberta
#3,826 0 comentários 0 reações 0 responsáveis Ver no GitHub
Java question
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

**Description of the issue**
QL reports wrong line numbers for some `JavadocTag`s.
Example query for LGTM demo projects:
```ql
import java

from JavadocTag a, JavadocTag b, Location locA, Location locB
where
a != b
and a.getParent() = b.getParent()
and locA = a.getLocation()
and locB = b.getLocation()
and locA.getStartLine() = locB.getStartLine()
select a, b, a.getText(), b.getText(),
locA.getEndLine(), locB.getEndLine(),
locA.getStartColumn(), locB.getStartColumn(),
locA.getEndColumn(),locB.getEndColumn()
```
[Query console link](https://lgtm.com/query/3568186472631499443/)

Note how these tags should be in the same line, but actually represent tags in different lines.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.