-
Notifications
You must be signed in to change notification settings - Fork 580
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
InvalidLinkBear false positive #758
Comments
Thanks for reporting this issue! A coalaian will look at it soon. |
This is why the ignore_regex was created was it not ? Some examples: |
what about special characters in URLs? As far as I remember they use |
@sils1297 Do you have something to add in favour ? |
I think we should ignore all of those by default because I can't see any of those ever being meant as a real URL |
I don't think we should because we'd be maintaining a list for every language which is messy. There are a lot of combinations. |
it's better us maintaining it than each user, fact is that InvalidLinkBear looses users because those template URLs aren't properly recognized by default. |
FWIW coala can deal with all placeholders you mentioned except % already and also has a heuristic to detect e.g. markdown links correctly |
I would like to be assigned to this issue however I need some details on exactly what I have to implement and change. |
basically: add the testcase to the tests, see it fail, then change the regex to make it pass |
thanks for picking this up! CC @SanketDG if you need further help, he wrote that thing |
I think the testcase for the placeholder
Also, for seeing it fail, I simply run this InvalidLinkBearTest.py right ? |
yeah just add one or two samples to the |
Ok, Just a small lil thing, If I add
Here since |
wait wait wait, you just substitute the --> """
...
http://www.%s.com
""".splitlines() If your regex works right, then yes the tests shall pass (without substitution), that's what you are trying to achieve^^ |
Oh, Okay, I guess the regex already written before works perfectly fine then. Because |
sounds good 👍 |
Add tests to ignore ``%s`` placeholders (without substitution) in URLs and tests to ignore ``%`` only in URLs Closes coala#758
It turns out I did not know how to run test cases and interpreted wrongly. Will send an updated PR soon. |
no, it shall not be ignored :) |
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Add corresponding tests to InvalidLinkBearTest.py of Modification of regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. and add corresponding tests to InvalidLinkBearTest.py Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Escape the special meaning of `"` with a backslash `\` in Regex. Fixes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
Modify regex to include links with % in between and to ignore placeholders like %s,%c,%f, etc. Closes coala#758
unassigned due to inactivity. If you want to be reassigned, ping! |
Doesn't look like this issue is solved yet^^ |
I ran the InvalidLinkBear (coala 0.10.0) on
and couldnt repoduce the bug. |
Indeed looks like it works ;) |
Modify regex to ignore placeholders like ``%s``,``%d``,``%f``, etc. and add corresponding tests to InvalidLinkBearTest.py Closes coala#758
http://www.%s.com/
that's a placeholder and should be ignored.type/bug
The text was updated successfully, but these errors were encountered: