Fixes #6640 - Update rubocop to 0.24.1