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

unused_variable error for a variable referred as LHS only #940

Open
taichi-ishitani opened this issue Sep 5, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@taichi-ishitani
Copy link
Contributor

taichi-ishitani commented Sep 5, 2024

Currently, Veryl does not report unused_variable error for a variable referred as LHS only like below.

image

Should Veryl report the error for this?

@taichi-ishitani taichi-ishitani changed the title unused_variable error for a variable referred as RHS only unused_variable error for a variable referred as LHS only Sep 5, 2024
@dalance
Copy link
Collaborator

dalance commented Sep 6, 2024

I think this case should be reported as unused.

@dalance dalance added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants