org.sonar.l10n.flex.rules.flex.S1438.html Maven / Gradle / Ivy
Why is this an issue?
In Flex, the semicolon is optional as a statement separator, but omitting semicolons can be confusing.
Noncompliant code example
function fun() {
return // Noncompliant
5 // Noncompliant
}
print(fun()); // prints "undefined", not "5"
Compliant solution
function fun() {
return 5;
}
print(fun());
© 2015 - 2025 Weber Informatics LLC | Privacy Policy