How do I disable some inspections for modules in IntelliJ IDEA?

匆匆过客 提交于 2019-12-01 19:23:57

You need to define a custom scope and configure the inspections' scope.

  1. Go to Settings -> Appearance & Behavior -> Scope and create a new scope. Include recursively all files, then exclude the given project library.

  2. Then go to Settings -> Editor -> Inspections and choose the inspections you want to disable for that project library, e.g. Declaration redundancy -> Unused symbol. In the scope settings, choose your newly defined scope.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!