User supplied rubocop flags

Yay, my first contribution to pre-commit :wink:. Please have a look, any improvements are greatly welcome. Especially, I'm not sure whether the test is appropriate.