Setup rubocop.

Closes #702.
True. How do you feel about an `if`/`elsif` here?