add guard-rubocop and fixed rubocop errors