[Code-Quality] Robustheit: parseInt-Radix, minGapDays-Guard, catch-Logs #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Schweregrad: LOW
Dateien:
js/calendar.js:98,104(parseInt ohne Radix),js/algorithm.js:49(minGapDays > 0ohne Null-Guard),js/app.js:28-30,js/employees.js:55-57(stille catch-Blöcke)Fix:
parseInt(x, 10)konsistent verwenden;if (c.minGapDays != null && c.minGapDays > 0);console.warn/errorin catch-Blöcken ergänzen.Behoben in
7ab2911:parseInt(month/year, 10)mit Radix; minGap-Check mit Null-Guard (c.minGapDays != null && c.minGapDays > 0); stille catch-Blöcke (korrupter localStorage-Load,createEmployee) loggen jetztconsole.warnstatt Fehler zu verschlucken.