Implements #7181: added initial support for rubocop

What version of rubocop is Jenkins using? If it's below 0.25.0 it won't have 'Metrics' namespace... I'll probably need to regenerate the todo config.