Add rubocop and reduce rubocop's warning.