Set rubocop preferences.
A lot of Rubocop auto fixes.
Fix minor indentation.
Favor Regexp.last_match.