Re-enable accidentally disabled inspection

Answered

Sometimes when using the `alt+enter` context-menuI accidentally disable the inspection from the sub-context-menu (`->` after `alt+enter`).  I understand to go under `File | Settings | Editor | Inspections.  But I cannot find the inspection I disabled.  It does not show under the "only modified" filter.  I cannot find it using the inspection panel search.

 

The current one is the inspection about "unchecked casts" that I want to ignore via `//noinspection unchecked`.  

 

Relatedly, is there a way to disable the "Disable Inspection" from that context menu?  As I said, its happened accidentally multiple times now and it is so frustrating.

 

Thanks in advance!

1
7 comments

Do you mean this inspection? If not, please share the code where it triggers.

0

> Relatedly, is there a way to disable the "Disable Inspection" from that context menu?  As I said, its happened accidentally multiple times now and it is so frustrating.

Unfortunately, this pop-up is not customizable, request is welcome at https://youtrack.jetbrains.com/newIssue?project=IDEA .

0
Avatar
Permanently deleted user

That was it.  Thank you Serge Baranov

0

I also accidentially unchecked an inspection. I cannot tell which one - I did not notice what was it. How do I know which inspection has just been disabled? It is not part of undo stack. Is there any log of what action user took to find the inspection there?

0

Inspections with a non-default state will be highlighted in the list:

1

Got it.

Not exactly guessable, but it is google-able on the Inet now.

Thanks!

0

Serge Baranov answer helped me to identify the error.

0

Please sign in to leave a comment.