Skip to content
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

Merged
merged 3 commits into from
Jan 26, 2022

Conversation

pkoenig10
Copy link
Member

@pkoenig10 pkoenig10 commented Jan 14, 2022

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.

@changelog-app
Copy link

changelog-app bot commented Jan 14, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Error Prone can be explicitly enabled using the com.palantir.baseline-error-prone.disable=false Gradle property.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco January 14, 2022 17:11
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);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkoenig10 pkoenig10 force-pushed the pkoenig10/enableErrorProne branch from 66cbba3 to 3b5fbda Compare January 14, 2022 17:28
@pkoenig10 pkoenig10 force-pushed the pkoenig10/enableErrorProne branch from baa2c04 to df3539d Compare January 14, 2022 18:38
@pkoenig10
Copy link
Member Author

@carterkozak @ferozco Any thoughts on this?

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bulldozer-bot bulldozer-bot bot merged commit 52459b0 into develop Jan 26, 2022
@bulldozer-bot bulldozer-bot bot deleted the pkoenig10/enableErrorProne branch January 26, 2022 21:54
@svc-autorelease
Copy link
Collaborator

Released 4.66.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Jan 26, 2022
###### _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.
This was referenced Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants