Add config for using bin/rubocop instead of just rubocop #2999
Closed
calebmeyer
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I have opened a PR to rubocop to see if I can make this unnecessary: rubocop/rubocop#13639 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today I was debugging why my .rubocop.yaml file wasn't being picked up by the VS Code extension. (it was formatting as though the file did not exist). It's defined at the root of my rails project, and running
bin/rubocop
picked it up just fine.After many minutes of debugging and troubleshooting, I determined that the issue was the
.yaml
file extension. The default is.yml
. When I renamed it, everything started working correctly. However, my org has a policy about using the four letter version, and it works everywhere else because our bin/rubocop explicitly loads that config file.So I looked for a configuration either to specify default arguments to rubocop or to specify the rubocop command to use. The extension has neither (as far as I can tell).
I'd love to contribute such a configuration if that's something that aligns with the project and someone can point me towards the correct place to add it.
Beta Was this translation helpful? Give feedback.
All reactions