Skip to content

Commit

Permalink
ignore message "possible invalid reference" #249
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed May 3, 2019
1 parent ee804e6 commit 082f200
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ public void apply(@NotNull PsiFile file, AsciidocAnnotationResultType annotation
WolfTheProblemSolver theProblemSolver = WolfTheProblemSolver.getInstance(file.getProject());
Collection<Problem> problems = new ArrayList<>();
for (LogRecord logRecord : annotationResult.getLogRecords()) {
if (logRecord.getMessage().startsWith("possible invalid reference:")) {
/* TODO: these messages are not helpful in IntelliJ as they have no line number
and for splitted documents they provide too many false positives */
continue;
}
HighlightSeverity severity = toSeverity(logRecord.getSeverity());
// the line number as shown in the IDE (starting with 1)
Integer lineNumber = null;
Expand Down

0 comments on commit 082f200

Please sign in to comment.