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

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

There is a newer version: 10.17.0.28100
Show newest version

Why is this an issue?

Calling a literal throws a TypeError, and is likely the result of an unintentional error in the code.

This rule raises an issue when an attempt is made to use a literal as a function.

true(); // Noncompliant, literal should not be used as function

This rule also detects when a literal is used as a tag function.

true``; // Noncompliant, literal should not be used as tag function

Resources

Documentation





© 2015 - 2024 Weber Informatics LLC | Privacy Policy