-
Notifications
You must be signed in to change notification settings - Fork 22
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
"no-commented-test" false positive #61
Comments
Thanks for the issue! Agreed that this is a false positive and a bug. Unfortunately, the regular expression does check |
Hi @Turbo87, sorry for taking so long to get to this. I have a branch up that might be a pretty good approach (without relying on trying to do a fuzzy parse). Basically it will only warn if the characters after
So there will still be a few false positives, but much, much fewer than before... Looking forward to any feedback you might have. |
Ran into another one in QUnit's own code base:
Perhaps to improve the signal-noise ratio we could reduce the pattern to only cases where a quote follows the open parenthesis? E.g. extend the pattern by |
@Krinkle I like that idea but still want to give users the option either way. How about if we create a new option, defaulting to the current behavior but letting users opt in to the more lenient check? And we can flip the default option value on the next major release. |
I've decided that we can just do the quote check as a non-breaking change (as it will result in fewer warnings). I'll work on a PR. |
led to triggering the
no-commented-test
rule. we should probably check fortest(
instead of justtest
.The text was updated successfully, but these errors were encountered: