从intellij检查中排除目录,但不从自动完成中排除 [英] Exclude directory from intellij inspection, but not exclude from autocomplete

查看:518
本文介绍了从intellij检查中排除目录,但不从自动完成中排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AFAIK排除目录的唯一方法是将它标记为在项目结构中被排除,但是,这将使IntelliJ完全忽略该目录,因此它不会出现在自动完成选项中。



我不想要这个。我想排除检查,但包括在其他一切。这是可能的吗?



Intellij 12.0.2,它实际上是引导css和js未通过检查。

解决方案

@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.

这篇关于从intellij检查中排除目录,但不从自动完成中排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆