The idea of sanitizing todos is for developers to leave TODO comments and have them all resolved or downgraded to FIXME
such that we never forget about the things we need to do until the pull request is merged.
The idea isn't new, in fact, I've just stolen it from rust-analyzer. The implementation is quite trivial. Here it is.
Though I would go for a more robust solution that uses rustc-ap-rustc_lexer crate for proper parsing.
The sanitizer is intended to be run as part of xtask crate tests.
The idea of sanitizing todos is for developers to leave TODO comments and have them all resolved or downgraded to FIXME
such that we never forget about the things we need to do until the pull request is merged.
The idea isn't new, in fact, I've just stolen it from
rust-analyzer. The implementation is quite trivial. Here it is.Though I would go for a more robust solution that uses
rustc-ap-rustc_lexercrate for proper parsing.The sanitizer is intended to be run as part of
xtaskcrate tests.