idea: for `expiring-todo-comments`: warn when GitHub issue is closed
#1,858 opened on Jul 13, 2022
Repository metrics
- Stars
- (5,022 stars)
- PR merge metrics
- (Avg merge 1d 16h) (399 merged PRs in 30d)
Description
I think this idea has been raised before, but I'm not sure it has with this specific restriction:
For a todo written like
// todo [#1234] until we refactor fooService, this hack prevents bar from bazing
delete bar.baz
Previously (I think) this idea has been rejected because hitting the GitHub API is an inappropriate thing to do from a lint rule, which is true. But there are many projects which keep a changelog.md file using a format like the one suggested by https://keepachangelog.com. If that changelog.md happens to include the words Fixes #1234 or Resolves #1234 or Closes #1234, then this plugin could assume that that issue is closed, and turn this todo into an "expired" one.
It wouldn't be 100% accurate, or work with 100% of projects, but might be better than not having it?