Open sanguish opened 3 years ago
Yes I agree, it would be great if this could be fixed! I would like it if I could write // TODO: [04/22/2022]
with both todo
and expiring_todo
enabled, then expiring_todo
rule would override the regular todo
rule (and so, if the date is more than 15 days away, no warning would show).
Alternatively or in addition to the above, making expiring_todo
always flag an error if a TODO doesn't have an expiration date. Perhaps with a bit more configuration flexibility, the two rules could be merged?
New Issue Checklist
Describe the bug
We want
// TODO:
comments without an expiry date to appear as a warning, however expect thatenabling expiring_todo
would not cause//TODO:
with dates outside the threshold to cause a warning under the standard -todo flag. And they seem to cause warnings regardless.So it seems that -todo overrides -expiring_todo, and they probably should be complementary.
Additionally, approaching_expiry_threshold: doesn't seem to be in the documentation.
Environment
example (I'm including leading 0 to accommodate the bug yet to be released)