-
Notifications
You must be signed in to change notification settings - Fork 185
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
todo_comment_linter could get an argument for valid TODO patterns #2047
Comments
Maybe just expose the regex as an optional argument and call it
|
The question then is how to interact this with the existing Line 164 in 191e3b7
Should we be looking for matches of |
I would let |
After #2433, I'm thinking the approach here will be: function(todo = c("todo", "fixme"), except_regex = NULL) Where I think we should support case-sensitive matching too -- I would want |
I don't think we need a third argument. You can simply turn on ignore-case by prepending |
This can allow
TODO
only if they fit certain patterns.This could be used to enforce a rule like "All TODO must be tied to a bug, not a person".
Maybe an argument like
allow_regex
orallow_style_regex
, in this caseallow_regex = "TODO[(][#][0-9]+[)]:"
could work.The text was updated successfully, but these errors were encountered: