Disabling unwanted inspection from dependent

Hi, 

In my plugin I have some functionality related with *.properties file so I have dependency on Property Support plugin. This works great but I would like to programmatically turn off default inspections from Property Support plugin such UnusedPropertyInspection.

Thank you a lot.

IdeaJ rulez :) 

   

0
4 comments

why do you want to disable some inspections which user once has enabled? I doubt that it's a good idea, sorry. You can do that calling normal disableTool methods but are you sure that it should be done?

Anna

0
Avatar
Permanently deleted user

Basically I want to disable such inspection only in particular *.properties files (which contains special keyword). It's our config file where UnusedProperty inspections does not make any sense.

Please can you provide some example?

Thx.

0

the correct way to fix it is to provide extension points to the inspection, so it can ignore special files. PR probably?

0
Avatar
Permanently deleted user

Finally I solved that issue in following way: just inform users about disabling Unused Property inspection in project scope.

0

Please sign in to leave a comment.