Setup rubocop.

Closes #702.
I think this line should be aligned with the previous line (and maybe RuboCop should be improved to detect this).