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 PreventUsingIncubatingMethods error-prone check (conjure) #1554

Merged
merged 5 commits into from
Nov 20, 2020
Merged

Add PreventUsingIncubatingMethods error-prone check (conjure) #1554

merged 5 commits into from
Nov 20, 2020

Conversation

blacksmithgu
Copy link
Contributor

An explicit check which warns against using incubating APIs; you can disable it on a per-project basis, or on a per-usage basis using @SuppressWarnings.

Before this PR

Incubating APIs are a stability liability, and should generally only be used explicitly (i.e., opt-in instead of opt-out). This check prevents their usage without an explicit annotation or opt-out.

After this PR

Adds the PreventUsingIncubatingMethods error-prone check, which blocks methods annotated with Conjure's @Incubating annotation.

Possible downsides?

Users upgrading gradle-baseline may get errors related to incubating methods until they either disable the check or tag their incubating API usages.

An explicit check which warns against using incubating APIs; you can
disable it on a per-project basis, or on a per-usage basis using
@SuppressWarnings.
@palantirtech
Copy link
Member

Thanks for your interest in palantir/gradle-baseline, @blacksmithgu! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app
Copy link

changelog-app bot commented Nov 19, 2020

Generate changelog in changelog/@unreleased

Type

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

Description

Add PreventUsingIncubatingMethods error-prone check (conjure)

An explicit check which warns against using incubating APIs; you can disable it on a per-project basis, or on a per-usage basis using @SuppressWarnings.

Before this PR

Incubating APIs are a stability liability, and should generally only be used explicitly (i.e., opt-in instead of opt-out). This check prevents their usage without an explicit annotation or opt-out.

After this PR

Adds the PreventUsingIncubatingMethods error-prone check, which blocks methods annotated with Conjure's @Incubating annotation.

Possible downsides?

Users upgrading gradle-baseline may get errors related to incubating methods until they either disable the check or tag their incubating API usages.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from CRogers November 19, 2020 20:59
@blacksmithgu
Copy link
Contributor Author

cc @carterkozak

To be more in line with other checks.
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, thanks!

@svc-autorelease
Copy link
Collaborator

Released 3.53.0

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.

4 participants