-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby format treats interpolated strings as comments. #818
Comments
A similar issue occurs with multi-line strings containing <<~EOS
# Not a Comment
EOS |
And another issue, cause by the shebang line and a #!/usr/bin/env ruby |
And yet another issue, also with the %r{https://example\.org/#compatibility-with-ruby-mri\.}, |
All of these issues are a product of trying to identify comments using only regex. This is (obviously) not the right way to do this. I have two branches currently exploring other solutions, |
These issues should be fixed now on the |
Check for existing issues
Environment
Using the Ruby format, strings with interpolation are treated as comments.
macOS/Homebrew/3.4.1
Describe the bug / provide steps to reproduce it
Running
vale
with the style ruleon a Ruby file containing
"#{args.HEAD?}"
results in
The text was updated successfully, but these errors were encountered: