-
Notifications
You must be signed in to change notification settings - Fork 135
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
Turn off UnnecessaryLambda check in tests #1210
Conversation
Generate changelog in
|
gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java
Outdated
Show resolved
Hide resolved
@@ -57,7 +57,8 @@ | |||
"ArrayEquals", | |||
"MissingOverride", | |||
"UnnecessaryParentheses", | |||
"PreferJavaTimeOverload"); | |||
"PreferJavaTimeOverload", | |||
"UnnecessaryLambda"); |
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.
I recall this creating code that didn’t compile, might want to test it on something large and internal (or atlas) first
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.
@dansanduleac you can use the hot new ./gradlew compileJava compileTestJava -PerrorProneApply=UnnecessaryLambda
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.
I've tested it on a project where this was causing trouble and it produced no fixes... if you recall this way, then maybe i can just remove it from here and let people deal with it
Released 3.2.2 |
Before this PR
UnnecessaryLambda errorprone check blocking baseline in projects with
-Werror
.After this PR
==COMMIT_MSG==
Turn off UnnecessaryLambda in tests where it doesn't provide value because there is a ubiquitous use case that is painful to fix.
==COMMIT_MSG==
Possible downsides?