Skip to content

Todo comment (ARCH707)

Key dotnet.codequality.todo-comment · Severity info · Category codequality

TODO comments usually mark unfinished work and accumulate into technical debt. They should be addressed before merging.

public decimal CalculateDiscount(Order order)
{
// TODO: add tiered discount logic
return 0m;
}
public decimal CalculateDiscount(Order order)
{
return order.Total > 1000m
? order.Total * 0.10m
: 0m;
}

Complete the work described by the TODO, or link it to a tracked issue and remove the comment.