Skip to content
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

check: Extend strict check of unused vars to include function arguments #5602

Closed
anderseknert opened this issue Jan 27, 2023 · 0 comments · Fixed by #5652
Closed

check: Extend strict check of unused vars to include function arguments #5602

anderseknert opened this issue Jan 27, 2023 · 0 comments · Fixed by #5652

Comments

@anderseknert
Copy link
Member

anderseknert commented Jan 27, 2023

fun(x, y) {
	input.hello == "world"
}

While x and y are unused above, they are not reported as such by the unused vars check. A user can always use _ if they don't intend to make use of a function argument inside of the function.

@anderseknert anderseknert changed the title Extend strict check of unused vars to include function arguments check: Extend strict check of unused vars to include function arguments Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant