-
-
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
Problem with Style/StringLiterals: #2834
Comments
update : this happens with a lot of other files in our project. All seem to be related to multi line strings;
|
Upgrade to 0.37.2. |
will try it! |
Sorry, still not working.
|
This shouldn't be hard to fix, but you will need to boil the failing code down to an example which you can share. Take a file which causes the error, and start deleting things from it. Delete as much as you can, as long as the file still triggers the error. When you get down to something which does not contain anything confidential, post it here. |
will post an example tommorow from my work PC with cleaned code, after I have verified it to be reproducable: |
As promised, here is a test file to reproduce the behaviour:
Running the same with
And the file in question:
Question : This is not caused by running in ruby 2.2.3 with target code for 2.3 right? |
nvm the previous question, changing the target version produces the same error. |
Hmm. Trying to repro, haven't succeeded yet. |
Haven't been able to reproduce on RC v0.37.2, with both Ruby 2.3.0 and 2.2.2. |
OK, with your |
awesome :) |
Just pushed a fix to my open PR. |
Hello,
I'm running into problems with Rubocop when activating this rule.
This is the autoput when running the command with -d:
I cannot share the source, but the class is basically one class with 2 class methods that return very large strings to use in queries.
The strings are build up using:
and are roughly 20 lines long.
The text was updated successfully, but these errors were encountered: