Setup rubocop.

Closes #702.
Does the cop suggest using `then`?