Open Makman2 opened 6 years ago
I want to have better tests before we fix this, to be sure this doesn't sneak in again.
Assigned as a part of GSoC project "Improve Linter Bears". Do not reassign for the duration of the coding period unless the assignee releases the issue themselves.
This belongs to the coala-bears repo.
@jayvdb can you migrate this issue when you have time? I don't have a laptop available right now.
@Makman2, this one here is already in coala-bears repo.
What the heck I've seen here... nvm at all :sweat_smile:
I've found out that the tests show different reporting behaviour of xmllint. For example one of the simple invalid-xml-tests produce following xmllint output:
As you see there are two context lines, which we don't need in coala. Hence the final
.*\n.*\n
inside the parsing regex:However, when e.g. using the dtd-validation, this swallows results, as then no context lines are presented:
So we need to catch the different operating modes (or in worst case, we even we have to detect the error type!) and choose a more appropriate regex.