I just added RuboCop to a rails project and installed the Sublime package to see RuboCop suggestions in the editor. I'm trying to figure out how to change the maximum line length from 80 characters, or just ignore the rule completely.
Currently in use:
In your code, you can disable a bunch of lines like this:
Or add this to your
.rubocop.yml
file to increase the max length:Creating a
.rubocop.yml
file (keep an eye on the initial.
in the filename) in the root of your project, you'll have a bunch of options:With latest changes at rubocop gem version 0.78.0 at 18-12-2019, from now on LineLength cop move from Metrics department to Layout department. So basically if any one need to disable long lines with using version number higher than 0.78.0 should do it like this.
Also
.rubocop.yml
configuration is changed to this.For reaching rubocop change logs, click here