Fixes #7022 - Upgrade version of rubocop

Notes:
* This is part of https://github.com/theforeman/foreman/pull/1666
* For some weird reason, some of the disables for MethodLength had to be placed on the same line. I think it's due to our indentation.