Already there's `Rubocop::RakeTask`.
https://github.com/bbatsov/rubocop/blob/503478cf9c07affaebd4c66d04dd4fd7b0449314/README.md#rake-integration