-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
rubocop: Some more config cleanup #14709
Conversation
Review period will end on 2023-02-21 at 00:00:00 UTC. |
0135d54
to
7931874
Compare
7931874
to
ae7982b
Compare
🤔 Why are things in |
I think the PWD where you run |
Thanks again @issyl0! |
Review period skipped due to |
Specifically, I think this has to do with whether I'm looking into consolidating them into a single file. |
We have separate rules for things in Library/Taps and for the Homebrew/brew codebase. As you’ve probably seen in other issues: specifying paths in |
This is useful context. It's been confusing triggering failures in other repos when making updates to the rubocop config here. Another approach could be to have a centralized, versioned rubocop repo, and each brew repo can independently use that config and a dedicated github action to run rubocop (and this repo could still enable the add'l config options that are currently in a separate file). (It looks like Shopify takes this approach: https://rubygems.org/gems/rubocop-shopify ) |
@dduugg Yeah, GitHub has the "separate repo, versioned gem" approach too - |
I'm going to undo the
works when RuboCop is run from the specific path. 🤔 |
ae7982b
to
364c346
Compare
I think given that we don't "use RuboCop" as much as we "use I appreciate that it's a little confusing to have to change other repos to have CI pass here but I think it's better for us to have this a big more centralised and blocking. |
@issyl0 IMO we should just remove it as a requirement and instead flip it to only be required on specific classes that are part of our public API. |
@MikeMcQuaid Yeah, will do this soon with the metrics stuff too. |
- Suggested in Homebrew#14709 (comment). - Found the public API paths with `git grep -l "@api public"`.
- Suggested in Homebrew#14709 (comment). - Found the public API paths with `git grep -l "@api public"`.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Exclude
withrubocop
#14685.Naming/PredicateName
allowsis_a?
by default.Thetest
dir is a default exclude forStyle/Documentation
.