Java: JavadocText does not exist for empty block comment / javadoc lines
未關閉
Java
question
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
**Description of the issue**
`JavadocText` represents a single line of a block or javadoc comment, see #3696.
However, it appears `JavadocText` does not exist for empty lines (unless they are single line comments).
Example query:
```ql
import java
from JavadocText text
where
text.getText().regexpMatch("[ \t]*")
// Make sure this is not a single line comment
and exists (text.getParent+().(Javadoc).getCommentedElement())
select text
```
It would be quite useful to detect empty lines, e.g. to find out if javadoc is missing HTML tags such as `
` or `
` to create proper line breaks. If that is the case the output will contain everything within the same line.
貢獻指南
評估
這個 Issue 還沒有評估資料。