Disable code inspection
Answered
Hi,
I have a Kotlin code inspection plugin which displays a banner with 2 actions Fix and Ignore. If the user clicks on Ignore I would like to stop the code inspection for this file. How can I achieve this?
Thanks in advance!
Please sign in to leave a comment.
Hi Ruben,
Why not use the built-in inspection ignoring mechanism?
How does your case differ from the standard inspection ignoring?
Hi Karol,
Thanks for the response.
What you mean to say is, let the user disable inspection for a class? This works too.
Just wanted to know if there is any api which lets me do it through the plugin as well?
Hi Ruben,
Yes, I mean using built-in features in general.