-
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
Add property to explicitly enable Error Prone #2042
Conversation
Generate changelog in
|
log.info("Disabling baseline-error-prone for {} due to {}", project, DISABLE_PROPERTY); | ||
errorProneOptions.getEnabled().set(false); | ||
} else { | ||
if (project.hasProperty(ENABLE_PROPERTY)) { | ||
errorProneOptions.getEnabled().set(true); |
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.
We can just rely on the plugin to have an appropriate default value here:
https://github.com/tbroyer/gradle-errorprone-plugin/blob/8d1f44dcef0ee68b5712ab1d319acfd2826db2a6/src/main/kotlin/net/ltgt/gradle/errorprone/ErrorProneOptions.kt#L24-L25
66cbba3
to
3b5fbda
Compare
gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java
Outdated
Show resolved
Hide resolved
baa2c04
to
df3539d
Compare
@carterkozak @ferozco Any thoughts on this? |
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.
lgtm
Released 4.66.0 |
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.66.0 | Type | Description | Link | | ---- | ----------- | ---- | | Feature | Error Prone can be explicitly enabled using the `com.palantir.baseline-error-prone.disable=false` Gradle property. | palantir/gradle-baseline#2042 | To enable or disable this check, please contact the maintainers of Excavator.
See #2010 (comment)
Before this PR
Error Prone is always disabled when running in IntelliJ.
After this PR
Users can explicitly enable Error Prone, even when running in IntelliJ, by setting the
com.palantir.baseline-error-prone.disable=false
Gradle property.