Setup rubocop.

Closes #702.
Did a cop complain about this?