-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Exclude sorbet assignments from Style/MutableConstant cop #18091
Conversation
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.
Approach makes sense to me, thanks!
Good idea. Though might be worth considering upstreaming this to rubocop-sorbet which also has a |
Great suggestion, I've opened Shopify/rubocop-sorbet#256 |
See https://github.com/Homebrew/ci-orchestrator/blob/f643ab875fbd9695072333fe2de17c98eb98cd8a/src/priority_type.rb as an example |
Closing this, pending outcome of upstream PR |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?We can't do anything about these violations, and the
rubocop:disable
comments are a bit of an eyesore. How would folks feel about excluding such patterns from theStyle/MutableConstant
cop instead? (If folks are amenable, I can then flesh this out with tests and such.)