tomasbjerre / violations-lib

Java library for parsing report files from static code analysis.
Apache License 2.0
148 stars 39 forks source link

NumberFormatException thrown by ErrorProne parser #96

Open djh82 opened 4 years ago

djh82 commented 4 years ago

Following error was thrown:

java.lang.NumberFormatException: For input string: "none -target 1.8 -source 1.8 -g"

It seems odd that the regex used by GoogleErrorProneParser doesn't enforce that capture group 5 is a number, since it immediately tries to call Integer.parseInt on it.

tomasbjerre commented 4 years ago

There are also other issues reported on errorprone. Best might be tonremove it.

Sadly they dont seem to understand the importance of https://github.com/google/error-prone/issues/444

Also #95 may be an alternative to replace errorprone parser.

djh82 commented 4 years ago

OK, we use error prone a lot. I'd implement the ability to output in a known format....if I knew they were going to accept it/at least engage.