We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I just bumped into an issue when using
{ local input = [1,2,3], local knownItems = [1,2], local unknownItems = std.filter(function(i) !(i in knownItems), input), assert unknownItems == [] : "unexpected items: %s" % std.join(",",unknownItems) }
Linter returns
Unused variable: unknownItems
Usage of the local variable here is obvious to avoid duplication of the filtering, but it is used just for assertion and validation of input data.
Would it be possible to also reflect usage in assertion?
The text was updated successfully, but these errors were encountered:
yes this is a bug in the linter
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi, I just bumped into an issue when using
Linter returns
Usage of the local variable here is obvious to avoid duplication of the filtering, but it is used just for assertion and validation of input data.
Would it be possible to also reflect usage in assertion?
The text was updated successfully, but these errors were encountered: