Todo comment (ARCH707)
Ce contenu n’est pas encore disponible dans votre langue.
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.
Incorrect
Section titled “Incorrect”public decimal CalculateDiscount(Order order){ // TODO: add tiered discount logic return 0m;}Correct
Section titled “Correct”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.