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 errorprone check for immutables style collisions #1396

Merged
merged 8 commits into from
Jun 8, 2020

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Jun 8, 2020

Fix for #1395

@changelog-app
Copy link

changelog-app bot commented Jun 8, 2020

Generate changelog in changelog/@unreleased

Type

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

Description

Add errorprone check to avoid accidentally undoing immutables Style meta-annotations.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco June 8, 2020 18:48
@a10y a10y force-pushed the aduffy/style-meta branch from fe06f31 to 3b3c97c Compare June 8, 2020 19:19
@a10y a10y changed the title Save Add errorprone check for immutables style collisions Jun 8, 2020

@AutoService(BugChecker.class)
@BugPattern(
name = "ImmutablesStyleCollision",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please document this alongside the other baseline error-prone checks in the readme!

Copy link
Contributor

Choose a reason for hiding this comment

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

You'll also need to add it to the list of errorprone rules we always apply

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to the readme but where is the list @ferozco ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's just for automatic refactors, but this can't be auto-fixed. severity = BugPattern.SeverityLevel.ERROR, should be sufficient.

@carterkozak
Copy link
Contributor

lgtm pending readme update and changelog, thanks!

@ferozco
Copy link
Contributor

ferozco commented Jun 8, 2020

Thanks @a10y !

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.

3 participants