Merge pull request #1118 from rspec/add-rubocop

Use Rubocop
Merge pull request #1128 from rspec/cherry-pick-rubocop-to-3-0-maintenance

Cherry pick rubocop to 3-0-maintenance