简体   繁体   English

Aptana“缺少分号”警告

[英]Aptana “Missing semicolon” warning

Last week I updated Aptana studio to last version (Aptana Studio 3, build: 3.4.2.201308081805). 上周我将Aptana工作室更新到最新版本(Aptana Studio 3,版本:3.4.2.201308081805)。 And now shows me warnings everywhere for missing semicolons in my JS files. 现在向我显示我的JS文件中缺少分号的警告。 I know these are optional in JS, and almost useless in some cases like this, which gives me a "missing semicolon" warning: 我知道这些在JS中是可选的,在某些情况下几乎没用,这给了我一个“缺少分号”的警告:

var LogLevels = {
    debug   : 4,
    info    : 3,
    warning : 2,
    error   : 1,
    none    : 0
}

So, my question is: is there a method to remove just this warning, and just for Javascript in Aptana? 所以,我的问题是:有没有一种方法可以删除这个警告,只是为了Aptana中的Javascript?

I would recommend always using semicolons as good practice as Kevin has said in his comment, but to answer your question. 我建议总是使用分号作为凯文在评论中说的好习惯,但要回答你的问题。

I do not know of a way to ignore semicolon errors but you can disable javascript validation by going to: 我不知道如何忽略分号错误,但你可以通过以下方式禁用javascript验证:

Window > Preferences > Aptana Studio > Validation 窗口>首选项> Aptana Studio>验证

Then untick Javascript Syntax Validator 然后解开Javascript语法验证器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM