Now that context is part of the standard library in Go 1.7, it would be nice for the tool mentioned in the comment of context.TODO() to be available to the public: https://golang.org/pkg/context/#TODO.
If this isn't feasible for some reason, I instead propose that this comment be removed, to prevent misleading others who are looking for the same tool:
TODO is recognized by static analysis tools that determine whether Contexts are propagated correctly in a program.
/cc @broady
Also @alandonovan for the status of the tooling
There's a pull request at golang/lint#227 that tries to add this check to lint, but the check really should be done in vet or in some other tool.
A tool that determines whether contexts are propagated correctly (instead of being forgotten and dropped) would also be useful in this situation, see https://github.com/google/go-github/pull/529#issuecomment-280872026.
Any news on the hypothetical static analysis tool that the context.TODO() comment refers to?
This is proving to be a source of much confusion; any feelings on updating the context.TODO() comment meanwhile?
I'm sorry to report that there is no tool. The author of that intriguing comment had a tendency to use the present tense when describing uncertain future events. ;)
In that case, I'll close this out. Thanks for the follow-up.
Change https://golang.org/cl/130876 mentions this issue: context: don't talk about tools that don't exist
Most helpful comment
I'm sorry to report that there is no tool. The author of that intriguing comment had a tendency to use the present tense when describing uncertain future events. ;)