Add rubocop development dependency.
Tidy up some rubocop offences.