-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Lint/LiteralInInterpolation
: /te#{'/'}st/
is autocorrected as /te/st/
#13319
Comments
Hello! Could you please provide further context to what you tried to achieve? I believe this is the expected behaviour either way since it is indeed a literal in interpolation. What is your expected output to the expression you just wrote? (/te#{'/'}st/). I believe that with this info we can think of something! |
Well - first of all to not become a syntax error 😓 idk why it's not marked as bug - I opened one |
…in `Lin/LiteralInInterpolation`.
…in `Lint/LiteralInInterpolation`.
…in `Lint/LiteralInInterpolation`.
…in `Lint/LiteralInInterpolation`.
…in `Lint/LiteralInInterpolation`.
…in `Lint/LiteralInInterpolation`.
Expected behavior
Describe here how you expected RuboCop to behave in this particular situation.
Do nothing?
Actual behavior
Describe here what actually happened.
Please use
rubocop --debug
when pasting rubocop output as it contains additional information.Steps to reproduce the problem
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler.If you see extension cop versions (e.g.
rubocop-performance
,rubocop-rspec
, and others)output by
rubocop -V
, include them as well. Here's an example:The text was updated successfully, but these errors were encountered: