You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thank you for your report. When building the SSA representation for fields, we try to account for any call-chain that can end up modifying the field. Unfortunately, callbacks that happen from library code that isn't part of the analyzed code currently aren't handled, which leads to the FP. This is a known problem and something that we're looking into, but the correct fix involves control-flow analysis of the bytecode of the referenced libraries, so it isn't something that we'll have a quick fix for, as we don't analyze bytecode yet.
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
The text was updated successfully, but these errors were encountered: