Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptana "Missing semicolon" warning

Last week I updated Aptana studio to last version (Aptana Studio 3, build: 3.4.2.201308081805). And now shows me warnings everywhere for missing semicolons in my JS files. I know these are optional in JS, and almost useless in some cases like this, which gives me a "missing semicolon" warning:

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?

like image 366
FYE Avatar asked Aug 28 '13 09:08

FYE


1 Answers

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:

Window > Preferences > Aptana Studio > Validation

Then untick Javascript Syntax Validator

like image 112
Simon Staton Avatar answered Oct 26 '22 10:10

Simon Staton