-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Error Prone #2054
Comments
Hi @vorburger, yes that seems like a good idea! One note of caution may be with the different Java versions. There is a separate subproject for compiling/running on Java 6/7, we don't need to add ErrorProne to that. If that is possible, then let's go for it! |
I have a love / hate relationship with errorprone. While it gets some issues eventually, it generates a lot of noise that unless you are willing to fix every single warning coming from errorprone those will get ignored as they become noise. Picocli is not that huge, so it won't add much time to the build, but one issue I have with it in artemis is that it takes a good amount to time to process. IMO though, picocli is very small. and I appreciate the fact it is small. I don't see much benefit from using errorprone. |
@clebertsuconic adding Error Prone to the PicoCLI build (only!) will keep the PicoCLI JAR and API as small as it is... 😺
@remkop I see! Because you use a Matrix Build it wouldn't "just work". Given https://errorprone.info/docs/installation stating "Please note that Error Prone must be run on JDK 11 or newer.", the best way maybe to simply have the |
Asked on https://discuss.gradle.org/t/how-to-skip-disable-plugin-execution-based-on-java-version/47274 Will also update https://stackoverflow.com/a/77668885/421602 (which comes up when searching for this). |
WIP on main...vorburger:picocli:errorprone ... ... currently shows 2 errors, 100 warnings - I think at least for an initial version the simplest here is to hide the warnings and fix the 2 errors. |
How about adding https://errorprone.info/docs/installation to PicoCLI? Using (https://github.com/tbroyer/gradle-errorprone-plugin.)
It would have found the #2053 problem, and possibly others, and will prevent regressions of them, and future new bugs.
@remkop would a PR for this be a welcome contribution?
The text was updated successfully, but these errors were encountered: