We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following code:
fun f(): Int { for (i in 0 until 10) { val a = i * i if (a < 27) continue return a } }
It should pass the check
It reports "unconditional loop jump" because of return statement
return
Used detekt from codefactor.io, see https://www.codefactor.io/repository/github/kotlin/kotlin-jupyter/source/notebook-api/jupyter-lib/kotlin-jupyter-api/src/main/kotlin/org/jetbrains/kotlin/jupyter/api/KotlinKernelVersion.kt#L13
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given the following code:
Expected Behavior
It should pass the check
Observed Behavior
It reports "unconditional loop jump" because of
return
statementSteps to Reproduce
Context
Your Environment
Used detekt from codefactor.io, see https://www.codefactor.io/repository/github/kotlin/kotlin-jupyter/source/notebook-api/jupyter-lib/kotlin-jupyter-api/src/main/kotlin/org/jetbrains/kotlin/jupyter/api/KotlinKernelVersion.kt#L13
The text was updated successfully, but these errors were encountered: