-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: Upgrade error-prone to 2.4.0 #1370
Conversation
Lets try this out on a few repos before letting it rip more widely |
We also should remove our jdk 12, 13 overrides as they shouldn't be necessary |
Many MoreASTHelpers/MoreSuggestedFixes methods are no longer necessary since our fixes were merged upstream. |
Cool, will fix those as well. Also found that your JavaTime check bug was fixed so we can reenable that |
|
baseline-error-prone/src/test/java/com/palantir/baseline/errorprone/CatchSpecificityTest.java
Show resolved
Hide resolved
gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java
Show resolved
Hide resolved
I found some cases of |
We should also clean up some of the work arounds in the gradle plugin itself. ex: Line 227 in a927d38
|
@ferozco I have removed it already |
👍 |
FYI these commits in error-prone 2.4.0 are going to cause a lot of failures for common nested imports. |
Would you mind trying the automated fixes and reporting back? If they seem safe and sane we can apply them automatically. |
The suggested fixes seemed to work pretty well, let's apply them automatically. |
I also ran into a bunch of issues with This was due to this change: |
I would be in favour of disabling the rule. I think its pretty lame to get warnings for code you don't control |
Looks like this is being tracked in google/error-prone#1646 |
Before this PR
We are using error-prone 2.3.4
After this PR
https://github.com/google/error-prone/releases/tag/v2.4.0
==COMMIT_MSG==
Upgarde error-prone to 2.4.0 to support latest jdks
==COMMIT_MSG==
Possible downsides?
There's 300 commits in the diff, surely there are bunch of checks that need autofixes applied