Upgrade rubocop and fix code style error