With Rubocop I can override rules in a .rubocop.yml
file like this:
AllCops:
RunRailsCops: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 20
I gotta believe CodeSniffer supports something like this, but looking at their wiki page, I can't find anything about rules:
And the default config file doesn't seem to support it: