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

[Catch-All Issue] More diagnostics #46

Open
JCWasmx86 opened this issue Feb 24, 2024 · 0 comments
Open

[Catch-All Issue] More diagnostics #46

JCWasmx86 opened this issue Feb 24, 2024 · 0 comments

Comments

@JCWasmx86
Copy link
Owner

JCWasmx86 commented Feb 24, 2024

This is a catch-all issue for listing/brainstorming ideas for new diagnostics/checks.

Reassignment of loop variables

Disabled by default.

foreach xyz : some_list
  # ... some code ...
  xyz = 2 # Warning: Reassignment of loop variable
  # ... some more code ...
endforeach

Use of loop variable after loop

Disabled by default.

foreach xyz : some_list
  # ... code ...
endforeach

message(xyz) # Use of loop variable after loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant