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!

0
3 comments

Hi Ruben,

Why not use the built-in inspection ignoring mechanism?

How does your case differ from the standard inspection ignoring?

0

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?

0

Hi Ruben,

What you mean to say is, let the user disable inspection for a class?

Yes, I mean using built-in features in general.

Just wanted to know if there is any api which lets me do it through the plugin as well?

I still don't understand the difference between your use case and the built-in one.
0

Please sign in to leave a comment.