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

Feature request: Self assignment lint #363

Open
alexkar598 opened this issue Jul 22, 2023 · 0 comments
Open

Feature request: Self assignment lint #363

alexkar598 opened this issue Jul 22, 2023 · 0 comments

Comments

@alexkar598
Copy link

Throw a warning for the following:

my_var = my_var
my_var.field = my_var.field

Ie when both sides of the assign are variable accesses or field accesses and theyre both the same variable (and field if field access)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants