Visit runCatching stetement #3923
Answered
by
cortinico
mzglinicki
asked this question in
Q&A
-
I would like to add a custom rule to check all catch statements in my code. I can check Is there any way to visit a runCatching statement?
|
Beta Was this translation helpful? Give feedback.
Answered by
cortinico
Jun 30, 2021
Replies: 1 comment 1 reply
-
This function should do the job for you: override fun visitLambdaExpression(lambdaExpression: KtLambdaExpression) You should be able to filter for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cortinico
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This function should do the job for you:
You should be able to filter for
runCatching
only by accessinglambdaExpression.functionLiteral