Checks for unused local variables.
Configuration
{
"type": "UnusedLocalVar"
}
No violation
class Main {
function test() {
var a;
var b;
var c;
var d;
a++;
call(b);
call(function() {
c++;
});
trace ('$d');
}
}
Violations
class Main {
function test() {
var name;
}
function test2() {
call(function() {
var name;
});
}
}
Unused local variable name