Configure rubocop and fix some reports.