Warning levels

Apr 3, 2014 at 9:49 AM
Hi,

how should i set the warning level to get the same warnings as with the -analyse argument? I tried -w:10 and even more, but some warnings I am still missing, for example:

performance warning JS1270: Argument defined but not referenced: numberBase

Thank you, ifko
Coordinator
Apr 3, 2014 at 1:52 PM
There are only 5 warning levels: 0-4. So -w:4 should get you what you want. Do you have an example piece of code that shows that warning for -a and not for -w:10?
Apr 4, 2014 at 8:06 AM
These are my calls of ajaxmin:

ajaxmin.exe -global:jQuery,$,fabric -analyze -ignore:JS1267 -xml %_ProjectDir%\Javascript\JavascriptManifest.xml
ajaxmin.exe -ignore:JS1267 -global:jQuery,$,fabric -w:4 -clobber -pretty:2 -xml %_ProjectDir%\Javascript\JavascriptManifest.xml -o %_ProjectDir%......\bin\data\Javascript

first call brings warning to this method:

_doOpenFaceplates: function(target, options) {
},

....

the second one does not....

the warning:

Symbol.js(140,39-46): performance warning JS1270: Argument defined but not referenced: options

It looks like -w argument is ignored at all