Implements #7181: added initial support for rubocop

I had to add an extra line here:

https://github.com/theforeman/foreman/pull/1666/files#diff-f95d0e467c98d6b455e88bbf8b01cff1R23