You'll have to disable the LeadingCommentSpace cop. It ensures that there is a space between # and the text that follows it. Puts something like this in your .rubocop.yml:
LeadingCommentSpace:
enabled: false
What you've stumbled upon is a bug, that I'll fix in the next RuboCop release (I'm its author). Obviously #! should be treated specially.
You'll have to disable the
LeadingCommentSpace
cop. It ensures that there is a space between#
and the text that follows it. Puts something like this in your.rubocop.yml
:What you've stumbled upon is a bug, that I'll fix in the next RuboCop release (I'm its author). Obviously
#!
should be treated specially.