Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

add check which complains about non-compliant TODOs #28

Open
robstoll opened this issue Jun 2, 2022 · 0 comments
Open

add check which complains about non-compliant TODOs #28

robstoll opened this issue Jun 2, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@robstoll
Copy link
Member

robstoll commented Jun 2, 2022

e.g. if issue indicator is proj#\d+
then it should complain if it finds one of the following TODOs:

  • TODO blabla
  • TODO #123 blabla
  • TODO blabla proj#123

I suggest we add tje flag --require-issue-number which enables this check. I.e. one should be able to use e.g. todo-checker -i "proj#123" which checks only for a particular issue and this check would not kick in and complain about other todos.
This way one could use:

todo-checker -i "proj#123"; todo-checker -i "proj#\d+" --require-issue-number

to check both

@robstoll robstoll added the help wanted Extra attention is needed label Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant