Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change rubocop's default settings?

Tags:

ruby

rubocop

Is it possible to change rubocop's default settings? I would like something along the lines of ~/.rubocop_default.yml, but I didn't find anything like this in documentation. But it must be possible, right? How can I achieve this?

like image 429
graywolf Avatar asked Oct 21 '25 03:10

graywolf


1 Answers

Just create .rubocop.yml file in either in your home directory or in some project directory and override settings you want. See the official manual for more information.

like image 83
Ilya Avatar answered Oct 23 '25 18:10

Ilya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!