Aptana Warning "Missing semicolon"

Last week I upgraded Aptana to the latest version (Aptana Studio 3, build: 3.4.2.201308081805). And now it shows me warnings everywhere about missing semicolons in my JS files. I know that they are optional in JS and are almost useless in some cases like this, which gives me a warning with a missing semicolon:

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

So my question is: is there a way to remove only this warning and only for Javascript in Aptana?

+6
source share
1 answer

I would recommend always using semicolons as good practice, as Kevin said in his comment, but to answer your question.

I don't know how to ignore semicolon errors, but you can turn off javascript validation by going to:

Window> Settings> Aptana Studio> Verification

Then disable Javascript syntax checking

+13
source

Source: https://habr.com/ru/post/952644/


All Articles