org.sonar.l10n.javascript.rules.javascript.S1442.html Maven / Gradle / Ivy
The newest version!
alert(...) can be useful for debugging during development, but in production mode this kind of pop-up could expose sensitive information to attackers, and should never be displayed.
Noncompliant Code Example
if(unexpectedCondition)
{
alert("Unexpected Condition");
}
See
- MITRE, CWE-489 - Leftover Debug Code
© 2015 - 2025 Weber Informatics LLC | Privacy Policy