-
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
Upgrade error_prone to 2.18.0 (from 2.16) #2472
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,9 @@ allprojects { | |
check("PreferSafeLogger", CheckSeverity.OFF) | ||
check("PreferSafeLoggingPreconditions", CheckSeverity.OFF) | ||
check("PreconditionsConstantMessage", CheckSeverity.OFF) | ||
// temporarily opt out of error-prone in order to upgrade checkerframework. | ||
// This should be removed as soon as baseline is next upgraded within this repo. | ||
enabled = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've compiled this using a snapshot of itself, things seem good, the problem is upgrading dependencies makes our existing baseline classes (applied to this project) incompatible with the upgraded checkerframework. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flag has been removed with the baseline upgrade here: https://github.com/palantir/gradle-baseline/pull/2503/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7L55-L57 |
||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Upgrade error_prone to 2.18.0 (from 2.16) | ||
links: | ||
- https://github.com/palantir/gradle-baseline/pull/2472 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,9 @@ private static void configureErrorProneOptions( | |
"PreferImmutableStreamExCollections", | ||
"UnusedVariable", | ||
// See VarUsage: The var keyword results in illegible code in most cases and should not be used. | ||
"Varifier"); | ||
"Varifier", | ||
// Yoda style should not block baseline upgrades. | ||
"YodaCondition"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a few new 🌶️ checkers, I would bet on AvoidObjectArrays, Finalize, YodaCondition likely need some manual intervention/suppression upon rollout (though in general I think we want those checks enabled) 2.17:AvoidObjectArrays 2.18:InjectOnBugCheckers |
||
errorProneOptions.error( | ||
"EqualsHashCode", | ||
"EqualsIncompatibleType", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caught by
InjectOnBugCheckers
in 2.18.0.