Closed theotrama closed 2 months ago
Thanks for the report. I luckily ran into this yesterday when adding the latest checkstyle release to the plugin. The fix should be in main; I just wanted to do some more testing before releasing it. No promises, but I’ll try get it out later today 🤞
Hey Jamie, thank you so much for the quick reply! And happy that you were able to reproduce the issue. Looking forward to the fix 💪
My pleasure - fixed in 5.94.0 I believe, but if you see any further problems please just reopen it!
(For the record, the problem was that some paths were returning missing properties as empty strings, which meant that the default value wasn't used. And in the newest release of the Google Checks, the severity
value is now driven by a property, falling back on warning
. Alas, as you can tell from the exception, trying to find an enum called ""
doesn't work very well...)
Wow Jamie, you're amazing! Just tested it and now it is importing the google_checks.xml successfully. Thank you!
My pleasure - but it's just sheer luck that I happened to spot the new version yesterday and find the problem! Glad to hear it's working, though 😄
whenever importing this google_checks.xml https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml we are getting an error where an Enum,valueOf call fails. This seems to be because at com.puppycrawl.tools.checkstyle.ConfigurationLoader$InternalLoader.endElement(ConfigurationLoader.java:571) a null value seems to be passed. See full stack trace below:
IntelliJ IDEA: 2024.1.3 (Ultimate Edition) CheckStyle-IDEA: 5.93.4