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
Credo.Check.Readability.StringSigils should not warn on multiline string #611
Comments
I'm curious whether that info (string is multiline or not) is available to Credo. |
@chulkilee You are right, this should not warn for multi-line strings ("heredocs"). I'm not sure why it does, since I was not able to reproduce this. Could you provide a file as a test-case? (oh, and sorry, I completely missed your issue 😔) |
Updated the example - it happens when I pass such string into pipe. |
Got it. Thanks! Will work on a fix 👍 |
@chulkilee You can try this by setting the Credo dep to {:credo, github: "rrrene/credo"} Please report back if your issue is solved! 👍 |
Environment
mix credo -v
): 1.0.0elixir -v
): 1.7.4What were you trying to do?
Use multiline string to wrap JSON string
Expected outcome
No error from Credo.Check.Readability.StringSigils since it's already readable :)
Note that
~s
cannot be used in that case since it does not remove leading spaces (like"""
).Actual outcome
Credo.Check.Readability.StringSigils is not happy with it
The text was updated successfully, but these errors were encountered: