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.
Can you add a fail test case for the flag, right now I think it would behave the same way with and without flag.