idea: for `expiring-todo-comments`: warn when GitHub issue is closed
#1858 aperta il 13 lug 2022
Metriche repository
- Star
- (5022 stelle)
- Metriche merge PR
- (Merge medio 4h 30m) (26 PR mergiate in 30 g)
Descrizione
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?