(PDOC-8) Add rubocop to ensure code quality

In order to ensure long term code quality, add a rubocop check to
the travis job which runs when a pull request is submitted.