更新时间: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.