-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Checkstyle SyntaxChecker reports incorrect Severity Level #709
Comments
Yes, the |
hmm... unless checkstyle can't distinguish message priorities there is only one ugly hack way to fix this problem, e.g. do an xml configuration parse and then parse each message according to it's priority but that's just an overkill as i see it. am i wrong? |
Checkstyle does distinguish between message priorities when the output format is set to XML (option
On a second thought, that isn't that bad. Basically, we'd have to decode XML entities, plus maybe the character references. |
Ok, a checker based on checkstyle with XML output looks like this: 6cc0ed4. It recognizes messages with priorities However, there is a deal breaker for it: since we can't decode XML entities before |
Nice change! However that deal breaker imposes some significant limitations on file names :( i'm not sure how to deal with this without making some changes to how syntastic parses errorformat :( |
Well, there are a number of ways to deal with it:
I'm inclined to choose 4. |
Ok, I added a note to the wiki, until we find a real solution. Sorry about that. |
It's now possible to decode XML entities in before parsing errors with |
My checkstyle configuration contains the following module:
...
<module name="TodoComment">
<property name="severity" value="info"/>
<message key="todo.match" value="Comment matches TODO pattern."/>
</module>
...
Notice that the severity value is set to 'info'. However, when I leave a TODO comment in my code, the message in my loc_list shows up as error. Example:
/path/to/myJavaclass.java|49 error| Comment matches TODO pattern
Also, thank you for adding Checkstyle support in syntastic. It's been invaluable to me.
The text was updated successfully, but these errors were encountered: