(CPR-57) Style fixes

Now that the packaging repo has rubocop we need to have a baseline for
all future runs. This commit goes through and fixes all 316 detected
offenses.
Hmm... `%r` delimited if the regex contains slashes, but `//` otherwise seems not crazy. i misinterpreted this as `%r` everywhere.