Fix RuboCop errors

Also pin the version of RuboCop to prevent this from happening in the future.