Todo Comment (ARCH3183)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key typescript.quality.todo-comment · Severity info · Category quality
TODO/FIXME/HACK/XXX markers in code signal unfinished work. They should be resolved before merge or tracked in an issue tracker; otherwise they become permanent technical debt in the code.
Incorrect
Section titled “Incorrect”function calculateDiscount(user: User): number { // TODO: apply discount based on loyalty tier // FIXME: guard against negative values return 0;}Correct
Section titled “Correct”function calculateDiscount(user: User): number { if (user.loyaltyTier === "gold") return 0.15; if (user.loyaltyTier === "silver") return 0.05; return 0;}Complete the work or convert the comment into a tracked issue.