且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从intellij检查中排除目录,但不从自动完成中排除

更新时间:2022-10-20 14:56:42

@Peter Lawrey 建议,正确的解决方案是使用自定义检查范围,排除不需要运行检查的目录。


AFAIK the only way to exclude a directory is to mark it as excluded in project structure, however, this would make IntelliJ totally ignore the directory - thus it will not appear in autocomplete options.

I do not want this. I want exclusion from inspections but inclusion in everything else. Is this possible ?

Intellij 12.0.2, and it's actually the bootstrap css and js failing the inspection.

As suggested by @Peter Lawrey, the proper solution would be to use the custom inspection scope that excludes the directories where you don't want the inspections to be run.