You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local variable bar is not used in function foo, consider removing it, on line var bar = 1;
Variable Bar is not a valid name. Please use CamelCase or underscores, on line return Bar;
Issue 1 is a false positive, because the variable is used, albeit with a different case. Issue 2 is valid, but doesn't really point out the real problem, that the same variable is used with inconsistent case.
I suggest CFLint becomes a bit smarter about this and instead of these two issues reports one, something a long the lines of: "Variable Bar is used with inconsistent case. Please use the same case in all references as in the declaration."
The text was updated successfully, but these errors were encountered:
The following code:
will produce 2 issues:
var bar = 1;
return Bar;
Issue 1 is a false positive, because the variable is used, albeit with a different case. Issue 2 is valid, but doesn't really point out the real problem, that the same variable is used with inconsistent case.
I suggest CFLint becomes a bit smarter about this and instead of these two issues reports one, something a long the lines of: "Variable Bar is used with inconsistent case. Please use the same case in all references as in the declaration."
The text was updated successfully, but these errors were encountered: