如何从我的eclipse项目中删除javascript验证? [英] How do I remove javascript validation from my eclipse project?
问题描述
我实际上喜欢我的JavaScript文件被验证,但我绝对不想验证和处理微不足道的警告第三方图书馆。
这就是为什么我认为一起关闭验证是太激烈了。幸运的是,使用Eclipse,您可以选择性地从验证中删除一些JavaScript源。
- 右键单击您的项目。
- 导航到:属性→JavaScript→包含路径
- 选择源选项卡。 (它看起来与Java Build Path Source标签相同)
- 展开JavaScript源文件夹。
- 突出显示
排除
pattern。 - 按编辑按钮。
- 按添加 c
- 您可以输入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.
- Right-click your project.
- Navigate to: Properties → JavaScript → Include Path
- Select Source tab. (It looks identical to Java Build Path Source tab.)
- Expand JavaScript source folder.
- Highlight
Excluded
pattern. - Press the Edit button.
- Press the Add button next to
Exclusion patterns
box. - 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屋!