-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow //exhaustive:ignore
on potential enums
#78
Allow //exhaustive:ignore
on potential enums
#78
Conversation
Fixes nishanths#76 This PR enables the syntax: ```go type DeclIgnoredEnum int // want no enum detected //exhaustive:ignore const ( DeclIgnoredMamberA DeclIgnoredEnum = 1 DeclIgnoredMamberB DeclIgnoredEnum = 2 ) //exhaustive:ignore const DeclIgnoredMamberC DeclIgnoredEnum = 3 ```
Thanks for the pull request. I added some comments. |
879bd2c
to
fc6d38d
Compare
Adds support for the syntax: ```go //exhaustive:ignore type DeclTypeIgnoredEnum int const ( DeclTypeIgnoredMamberA DeclTypeIgnoredEnum = 1 DeclTypeIgnoredMamberB DeclTypeIgnoredEnum = 2 ) ```
fc6d38d
to
ce37a1d
Compare
Hey @nishanths. Thanks for the excellent feedback. I have addressed your comments. |
Added a few more comments (one blocking). Looks good to me after that. |
Thanks for the feedback. I addressed it and am ready for another round of review. I really appreciate your patience here. |
You're welcome, and it's no problem at all. Thank you for updating! |
Fixes #76
This PR enables these examples:
Ignoring declared constants (d9dc665):
Ignoring declared types (272c2ab):
Both commits are under test.