Setup rubocop.

Closes #702.
Do we need an explicit `nil` here?