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 leng
In your code, you can disable a bunch of lines like this:
# rubocop:disable LineLength
puts "This line is lonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnng"
# rubocop:enable LineLength
Or add this to your .rubocop.yml
file to increase the max length:
Metrics/LineLength:
Max: 100