fixes #4873 - add rubocop.yml


To run:
```
rubocop -R lib
```