Skip to content

Detection of while(TRUE) and while(FALSE) #2106

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

Closed
MEO265 opened this issue Sep 4, 2023 · 1 comment · Fixed by #2107
Closed

Detection of while(TRUE) and while(FALSE) #2106

MEO265 opened this issue Sep 4, 2023 · 1 comment · Fixed by #2107

Comments

@MEO265
Copy link
Contributor

MEO265 commented Sep 4, 2023

t would be handy to introduce a new linter that detects while(TRUE) constructs and suggests adopting repeat for clearer infinite loop indication. In the same linter, a feature could be developed to identify while(FALSE) constructs, signaling unreachable code or potentially as an additional feature of the existing unreachable_code_linter.

@MichaelChirico
Copy link
Collaborator

the latter is #1428. the former should be a new linter, yes

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.

2 participants