github / github/codeql

LGTM.com - false positive /

Open
#2,742 1 comment 0 reactions 0 assignees View on GitHub
false-positive Java
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description of the false positive**

Using next() and myBuilder.eof() will advance the cursor, and will trigger the callback setWhitespaceSkippedCallback, that will increment newLines, therefore this is a false positive.

https://lgtm.com/projects/g/asciidoctor/asciidoctor-intellij-plugin/snapshot/4f6083a0115577e6f8b12b0fbc95fe67e2263673/files/src/main/java/org/asciidoc/intellij/parser/AsciiDocParserImpl.java?sort=name&dir=ASC&mode=heatmap#xa2e95b28c87f047c:1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.