Use rubocop 0.24

And fix minor syntax