-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: implement --forbidden-keys
#40
Conversation
--forbidden-key
--reserved-key
Hello, thank you for the PR, I like the idea! I noticed that you first named it |
--reserved-key
--forbidden-key
@tmzane thanks. I reverted the feature to its original name |
This PR implements a linter rule to deny usages of certain keys as attributes to enforce that developers don't override reserved keys managed by custom handlers. Signed-off-by: Tiago Silva <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the code side, just a few minor comments about the docs.
Co-authored-by: Matthew Dowdell <[email protected]>
I just remembered that |
--forbidden-key
--forbidden-keys
@tigrato thanks, this is a great feature to have! @mattdowdell as always, thanks for the review! |
Oh, and we should bump Go version in go.mod, because the |
This PR implements a linter rule to deny usages of certain keys as attributes to enforce that developers don't override reserved keys managed by custom handlers.