All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S1154.html Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version

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