Updated RuboCop and fixed errors