-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unused var, but it is used. #493
Comments
cflint is not making a statement about the nature of transactions and variables. I think this is a CFLint false positive bug. |
As I understand the rule, assignment does not constitute usage, so I would expect it to also report within the |
So because it is returned, it should definitely be seen as used. Regardless, I am still confused. You said when it's put inside the |
I see. When it's declared in the |
hmm, first while blocks, and now transaction blocks. Both were being skipped by cflint. I believe any others should be resolved in a generic fashion now. This is fixed in dev branch, will be available in 1.3.0 |
so it seems if I do something like this
I get a cflint error saying
foo
is unused. If I put it inside thetransaction
error goes away.I don't know if this is a bug or actually a real case scenario. Never heard that variables made outside a transaction are not available inside a transaction, but maybe it is the case.
Anyone know for sure?
The text was updated successfully, but these errors were encountered: