make magic.rb pass rubocop