Skip to content

On the problem of infinite for loops #4744

Closed Answered by ldez
Sakura0001 asked this question in Q&A
Discussion options

You must be logged in to vote

I would like to ask if there is a Linter who can solve this problem.

No, because it's impossible to evaluate statically this kind of problem.
Your snippet is an example: there is a break but it's impossible to know statically if the break condition is possible or not.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Sakura0001
Comment options

@ldez
Comment options

ldez May 23, 2024
Maintainer

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants