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 BugCheckerAutoService #2028

Merged
merged 4 commits into from
Jan 7, 2022
Merged

Add BugCheckerAutoService #2028

merged 4 commits into from
Jan 7, 2022

Conversation

schlosna
Copy link
Contributor

@schlosna schlosna commented Jan 7, 2022

Before this PR

If a BugChecker is not annotated as @AutoService(BugChecker.class) it will not be registered with error-prone as an available bug pattern (see #2024 & #2026).

After this PR

==COMMIT_MSG==
Add BugCheckerAutoService

Concrete BugChecker implementations should be annotated
@AutoService(BugChecker.class) for auto registration with error-prone.
==COMMIT_MSG==

Possible downsides?

Concrete BugChecker implementations should be annotated
`@AutoService(BugChecker.class)` for auto registration with error-prone.
@changelog-app
Copy link

changelog-app bot commented Jan 7, 2022

Generate changelog in changelog/@unreleased

Type

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

Description

Add BugCheckerAutoService

Concrete BugChecker implementations should be annotated
@AutoService(BugChecker.class) for auto registration with error-prone.

Check the box to generate changelog(s)

  • Generate changelog entry

summary = "Concrete BugChecker implementations should be annotated "
+ "`@AutoService(BugChecker.class)` for auto registration with error-prone.",
severity = SeverityLevel.ERROR,
tags = StandardTags.PERFORMANCE)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don’t think this is a perf issue :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doh, copy pasted that block

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, feel free to merge after removing the perf tag. Thanks!

@bulldozer-bot bulldozer-bot bot merged commit bb11163 into develop Jan 7, 2022
@bulldozer-bot bulldozer-bot bot deleted the ds/BugCheckerAutoService branch January 7, 2022 20:24
@svc-autorelease
Copy link
Collaborator

Released 4.56.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Jan 8, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.56.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Add BugCheckerAutoService<br><br>Concrete BugChecker implementations should be annotated<br>`@AutoService(BugChecker.class)` for auto registration with error-prone. | palantir/gradle-baseline#2028 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Jan 8, 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.

None yet

4 participants