您的位置:首页 > Web前端 > JavaScript

如何移除 eclipse中的 javascript 验证?(英文)

2013-11-12 14:46 253 查看
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 Indigo ( 3.7 ) you can selectively remove some JavaScript sources from validation.

Right click your project

Select Properties -> JavaScript -> Include Path

Select
Source
tab.
( It looks identical to Java Build Path Source tab )

Expand JavaScript source folder

Highlight
Excluded
pattern

Click
Edit
button

Click
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: