[Tech debt] Nettoyer les 51 code smells SonarQube #56
Labels
No labels
P0-critical
P1-high
P2-medium
P3-low
UX
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
security
tech-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SlopVibe-org/nutri-food#56
Loading…
Reference in a new issue
No description provided.
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?
Problème
SonarQube rapporte 51 code smells:
let/const/var(auth.js, food-modal.js, render.js, tracking.js)varau lieu delet/constinsertBefore->before(),removeChild->remove()Solutions
BLOCKER (6)
let/constaux variables globales:planningSelections = ...->let planningSelections = ...CRITICAL (15)
'Format de date invalide')varparconst/letMAJOR (19)
insertBefore(child, ref)->ref.before(child)parentNode.removeChild(child)->child.remove()MINOR (11)
RegExp.exec()au lieu deString.match()Approche
no-var,prefer-const)Priorité
P3-low