Does it do autoformatting and fixing errors or is it just a linter that shows what's wrong with your code?
If you run it with rubocop -a (or equivalent shortcut in your editor) it will fix what it can.
rubocop -a
Does it do autoformatting and fixing errors or is it just a linter that shows what's wrong with your code?
If you run it with
rubocop -a
(or equivalent shortcut in your editor) it will fix what it can.