How to disable compiler level inspections?
已回答
Hi,
I'm working on a project where we are using Annotation Processors(AP). With AP we modify java sources due to make them compileable. That is fine but I would like disable some code inspections for the classes in the Editor for specific compilation errors by template. ex: for errors like "Cannot resolve symbol 'BlahBlah'" when I type "BlahBlah" somewhere in my code. (AP replaces "BlahBlah" with working code and javac successfully compile it).
I couldn't find that validation in Settings->Editor->Inspections neither for this error nor for any other compilation error inspections.
How can I get access/modify the compilation level error inspection?
请先登录再写评论。
Hello, compilation error highlighting isn't related to inspections and can't be disabled. Please tell what annotations library do you use? Probably you haven't enabled the corresponding plugin in Preferences | Plugins so that IDEA won't show the errors in Editor. For example if you work with Lombok library you have to enable AP and Lombok plugin as well.
Olga,
Thank you for your response. We don't use an external annotation library. You are right the idea for our AP is similar to Lombok library. I think the Lombok plugin suppresses compilation errors. I don't have an experience in development IDEA plugins and I tried to avoid that but it looks like I have to deep into it :)