This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Feb 13, 2013 10:06 PM by Konstantin Ulitin  
Mike Suiter Newbie 17 posts since
Feb 4, 2013
Currently Being Moderated

Feb 13, 2013 8:28 PM

Suppress unused parameter for empty JavaScript method?

We have an abstract API JavaScript class and define the methods with parameters and empty body. We are getting 'Unused parameter apiOptions' but not an option to suppress it like other inspection errors. Generally this is a good inspection warning but in this case I want to ignore it. Any ideas?

 

 

    /**
     *
     * @param {apiOptions|Object} apiOptions
     */
    login: function(apiOptions) {},

Konstantin Ulitin JetBrains 62 posts since
Jan 19, 2012
Currently Being Moderated
Feb 13, 2013 10:06 PM in response to: Mike Suiter
Re: Suppress unused parameter for empty JavaScript method?

Hi Mike,

 

I couldn't think of a workaround here. We currently support only @interface tag, i.e. parameters of interface methods are not highlighted as unused. I've created two issues, please watch them to get notified about progress.

http://youtrack.jetbrains.com/issue/WEB-100336

http://youtrack.jetbrains.com/issue/WEB-100337

 

Regards,

Konstantin

More Like This

  • Retrieving data ...