linter doesn't account for goog.ui.decorate

33 views
Skip to first unread message

John Munro

unread,
May 24, 2013, 4:00:31 PM5/24/13
to closure-lin...@googlegroups.com
If I use goog.ui.decorate to decorate an element from its CSS class, the linter thinks that the control's namespace is no longer required, but removing it means that the decorate no longer works.

Is there a suppress I can put in to get the linter to leave those namespaces alone?

Andy Perelson

unread,
May 28, 2013, 6:32:10 PM5/28/13
to closure-lin...@googlegroups.com
We support suppression for extra and missing provides and requires. It uses the same syntax as the Closure Compiler. In JsDoc just put:

/** @suppress{extraRequire} */

Also support extraProvide, missingRequire, and missingProvide

Andy


On Fri, May 24, 2013 at 4:00 PM, John Munro <ghos...@gmail.com> wrote:
If I use goog.ui.decorate to decorate an element from its CSS class, the linter thinks that the control's namespace is no longer required, but removing it means that the decorate no longer works.

Is there a suppress I can put in to get the linter to leave those namespaces alone?

--
You received this message because you are subscribed to the Google Groups "Closure Linter Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-linter-di...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Munro

unread,
May 29, 2013, 9:58:48 AM5/29/13
to closure-lin...@googlegroups.com
Thanks, I looked for a list of @suppresses but I couldn't find one


On Tuesday, May 28, 2013 6:32:10 PM UTC-4, ajp wrote:
We support suppression for extra and missing provides and requires. It uses the same syntax as the Closure Compiler. In JsDoc just put:

/** @suppress{extraRequire} */

Also support extraProvide, missingRequire, and missingProvide

Andy
On Fri, May 24, 2013 at 4:00 PM, John Munro <ghos...@gmail.com> wrote:
If I use goog.ui.decorate to decorate an element from its CSS class, the linter thinks that the control's namespace is no longer required, but removing it means that the decorate no longer works.

Is there a suppress I can put in to get the linter to leave those namespaces alone?

--
You received this message because you are subscribed to the Google Groups "Closure Linter Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-linter-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages