dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Global rubocop config

Open teoljungberg opened this issue 6 years ago • 2 comments

I'm quite opinionated about my ruby style, as some could guess.

I'm thinking that I should have a rubocop config in my dotfiles, but I wonder how that would work with a specific project doing something different than my config? Can they override eachother?

Is it possible for the project specific rubocop config to take precedence over the global one?

teoljungberg avatar Jun 26 '18 10:06 teoljungberg

Good call. I too would want this.

Subscribing to this issue like the lazy bastard that I am. 😃

Mange avatar Jun 26 '18 13:06 Mange

Yes, local configurations take precedence over global configurations: .rubocop overrides ~/.rubocop.

I have a global rubocop: https://github.com/gabebw/dotfiles/blob/master/rubocop.yml

gabebw avatar Jun 26 '18 16:06 gabebw

I've used https://github.com/testdouble/standard more and more, and that's enough until https://github.com/fables-tales/rubyfmt is more mainstream

teoljungberg avatar Jan 28 '23 10:01 teoljungberg