Run rubocop and make ruby style changes to main_controller and application_controller.