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
Enable typing in rubocops #14649
Enable typing in rubocops #14649
Conversation
Review period will end on 2023-02-16 at 18:40:07 UTC. |
b8ba494
to
9e550fe
Compare
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.
Thanks again @dduugg!
Review period ended. |
This PR revealed an interesting design artifact. It seems However, sorbet doesn't allow I've worked around the issue for now by disabling |
5a490ab
to
a57764e
Compare
Yeah I did redo the FormulaCop stuff before to be a |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This changes enables typing for everything under
Library/Homebrew/rubocops
.The most significant change here is probably enabling
--enable-experimental-requires-ancestor
flag in sorbet. Since the feature "is experimental and might be changed or removed without notice", i've put every use ofrequires_ancestror
in anrbi
file, so that the runtime does depend on a potentially breaking change. (However, sincesorbet-runtime
appears to be vendored, this may be overkill.)