org.sonar.l10n.javascript.rules.javascript.S1154.html Maven / Gradle / Ivy
This rule is deprecated; use {rule:javascript:S2201} instead.
Why is this an issue?
Doing an operation on a string without using the result of the operation is useless and is certainly due to a misunderstanding.
Noncompliant code example
var str = "..."
str.toUpperCase(); // Noncompliant
Compliant solution
var str = "..."
str = str.toUpperCase();
© 2015 - 2024 Weber Informatics LLC | Privacy Policy