-
Notifications
You must be signed in to change notification settings - Fork 418
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
Consistency error in regex #40
Comments
Thanks for the bug report! I added a test reproducing the issue and will try to fix as soon as I can 👍 |
I thank you for your work for the community :) |
@rrrene I just looked at this issue and think it is best to just remove the regex before applying the checks. But this lead to the next problem: how to properly detect the end of the regex? Instead of trying to detect the end of the regex, I propose to just strip everything following the So I came up with a simple but working solution by inserting line = line |> String.replace(~r/\~r.*$/, "") before this line: Yes, it is far from being optimal and may remove too much code that could contain problems, but until we find a better solution it should work. What do you think? |
@hojgr I re-opened this issue since it is not fixed, yet. @c-rack I agree something like that will be the way to go. There is also the Credo.Code.Sigils module, which was introduced to strip sigils from source code. That way we could at least remove the |
@hojgr |
Hello!
Awesome project!
I'm running it on my application and one of the warnings I get is this one
Thing is, the 24th line in user.ex is
Thing is, this is regex. I want to match the whitespace. I think this is a bug :)
Michal Hojgr
The text was updated successfully, but these errors were encountered: