How can I disable new idiot code warnings at WebStorm 3.0?

WebStorm 3.0 shows warnings if optional arguments are not set.
This is so annoying me. WebStorm 2.1 didn't show those.


And also WebStorm 3.0 shows warnings if we set optional arguments in ajax function of jQuery.

$.ajax({
    type: 'post',
    url: theUrl,
    data: {
        method: 'hoge',
        id: contentId,
        timeZoneOffset: t  // WebStorm 3.0 warns this.
    },
    dataType: 'json',



And WebStorm 3.0 warns the variable which is used in closure.
WebStorm 3.0 said 'The value assigned is never used'. It's used in closure!!


How can I disable these idiot code warnings?


thanks

Shigeru Nakagaki
0
7 comments

Try File | Settings | Inspections | JavaScript

P.S.
Nice wording ...

1

Which one? There are so many items.
I don't want to disable code warnings which are in 2.1.
I just want to disable only new code warnings.


thanks

Shigeru Nakagaki

0

What JQuery version you are using ?
WebStorm 3.0.1 RC has fixed issue with incorrect errors for variables accessed from closure.

0

jQuery 1.7.1
WebStorm
  Build #WS-111.19
  Built on 2011/11/28

thanks

0

You can switch off "unused property reporting" if you press alt + enter on yellow warning
Btw, you can download WebStorm 3.0.1 which has 'The value assigned is never used' warning fixed for closures.

0

In WebStorm 3.0.2, the following issue were not fixed.

Issue 1:

$.ajax({
    type: 'post',
    url: theUrl,
    data: {
        method: 'hoge',
        id: contentId,
        timeZoneOffset: t  // WebStorm 3.0 warns this.
    },
    dataType: 'json',




Issue 2:
WebStorm 3.0.2 shows warnings if optional arguments of jQuery methods are not set.


thanks

Shigeru Nakagaki
0

1. Pressing alt + enter on message, reset "unused property reporting" option

0

Please sign in to leave a comment.