如何从我的eclipse项目中删除javascript验证? [英] How do I remove javascript validation from my eclipse project?

查看:153
本文介绍了如何从我的eclipse项目中删除javascript验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用eclipse,同时在使用我的eclipse设置的同时,我开启了Javascript的支持。现在eclipse抱怨说JQuery库中有错误,而不是让我编译项目。有谁知道如何关闭javascript验证?

解决方案

我实际上喜欢我的JavaScript文件被验证,但我绝对不想验证和处理微不足道的警告第三方图书馆。



这就是为什么我认为一起关闭验证是太激烈了。幸运的是,使用Eclipse,您可以选择性地从验证中删除一些JavaScript源。


  1. 右键单击您的项目。

  2. 导航到:属性→JavaScript→包含路径

  3. 选择选项卡。 (它看起来与Java Build Path Source标签相同)

  4. 展开JavaScript源文件夹。

  5. 突出显示排除 pattern。

  6. 编辑按钮。

  7. 添加 c

  8. 您可以输入Ant风格的通配符模式,也可以点击浏览按钮以名称提及JavaScript源。

有关JavaScript源代码包含/排除的信息将保存到 .settings / .jsdtscope 文件。不要忘记将其添加到您的SCM。



以下是从验证中删除jQuery文件的配置外观:




I am using eclipse on my project and while messing around with my eclipse settings, I turned on Javascript support. Now eclipse complains that JQuery library has errors in it and is not letting me compile the project. Does anyone know how to turn javascript validation off?

解决方案

I actually like MY JavaScript files to be validated, but I definitely don't want to validate and deal with trivial warnings with third party libraries.

That's why I think that turning off validation all together is too drastic. Fortunately with Eclipse, you can selectively remove some JavaScript sources from validation.

  1. Right-click your project.
  2. Navigate to: Properties → JavaScript → Include Path
  3. Select Source tab. (It looks identical to Java Build Path Source tab.)
  4. Expand JavaScript source folder.
  5. Highlight Excluded pattern.
  6. Press the Edit button.
  7. Press the Add button next to Exclusion patterns box.
  8. You may either type Ant-style wildcard pattern, or click Browse button to mention the JavaScript source by name.

The information about JavaScript source inclusion/exclusion is saved into .settings/.jsdtscope file. Do not forget to add it to your SCM.

Here is how configuration looks with jQuery files removed from validation:

这篇关于如何从我的eclipse项目中删除javascript验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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