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

New lints: Breaking changes related to union types #633

Closed
6 tasks done
obi1kenobi opened this issue Jan 13, 2024 · 4 comments
Closed
6 tasks done

New lints: Breaking changes related to union types #633

obi1kenobi opened this issue Jan 13, 2024 · 4 comments
Labels
A-lint Area: new or existing lint C-enhancement Category: raise the bar on expectations E-help-wanted Call for participation: Help is requested to fix this issue. E-mentor Call for participation: Mentorship is available for this issue.

Comments

@obi1kenobi
Copy link
Owner

obi1kenobi commented Jan 13, 2024

Now that we've added union types to the schema we use for writing lints, we have a lot of union-related lints to implement!

Major lints:

Minor lints:

@obi1kenobi obi1kenobi added A-lint Area: new or existing lint C-enhancement Category: raise the bar on expectations E-help-wanted Call for participation: Help is requested to fix this issue. E-mentor Call for participation: Mentorship is available for this issue. labels Jan 13, 2024
@pksunkara
Copy link
Contributor

pub union is no longer repr(C)

@obi1kenobi Can I rename the existing lints? I am wondering if we can combine this to existing similar ones.

@obi1kenobi
Copy link
Owner Author

You could combine it with the enum and the struct versions of that lint, and use the ImplOwner interface plus the __typename property to express them in one lint.

If you're interested in doing that, go for it. I don't have a strong preference between adding a separate lint or replacing them with one lint that works for struct / enum / union all in one.

@obi1kenobi
Copy link
Owner Author

Nice job on this issue, everyone! We're two lints away from closing it completely! 🚀

@obi1kenobi
Copy link
Owner Author

All done here! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: new or existing lint C-enhancement Category: raise the bar on expectations E-help-wanted Call for participation: Help is requested to fix this issue. E-mentor Call for participation: Mentorship is available for this issue.
Projects
None yet
Development

No branches or pull requests

2 participants