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

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

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for (var i = 0; i < length; i++) {}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy