Go

Go

Made by DeepSource

TODO comments written without any detail or assignee GO-C4010

Style
Minor

TODO comments should be accompanied by details or assignees and not left empty so that they can be addressed later, and when it is referenced in the future, it will help define the scope of the work.

Examples

Bad practice

// TODO
doWorkCtx(nil, x(), y())

// TODO
doWorkCtx(context.TODO(), x(), y())

Recommended

// TODO(SS): pass context.Background() instead of nil
doWorkCtx(nil, x(), y())

// TODO(AG): Replace context.TODO() with context.Background()
doWorkCtx(context.TODO(), x(), y())