Rubocop for simple looping