javascript - Suppress "Unknown global symbol" warnings in qooxdoo with coffeescript -


i'm using qooxdoo in combination google maps api. i'm using in combination coffeescript, had same problem before moved on coffeescript (although suspect coffeescript isn't helping).

when build project, lot of lines this:

  - warning: myproj.app (22,50): unknown global symbol used: 'google'   - warning: myproj.app (22,76): unknown global symbol used: 'google.maps'   - warning: myproj.app (23,21): unknown global symbol used: 'google'   - warning: myproj.app (23,47): unknown global symbol used: 'google'   - warning: myproj.app (23,74): unknown global symbol used: 'google.maps'   - warning: myproj.app (15,18): unknown global symbol used: 'google.maps.latlng' 

i've found lots of references @ignoreundefined or @ignore rid of this, supposed placed in javadoc comment this:

/**  * @ignore(google.*)  */ 

however, i've been unable work. i've tried @ignoreundefined , @ignore, , without brackets, google on it's own, google. google*, google.*, google.maps.latlng explicitly (and other ones) , few other variations. in coffeescript i've tried having in ### block , in block @ top of file looks this:

`/**   * @ignoreundefined google   */` 

or

`/** @ignore(google) */` 

(the backticks stick straight javascript source unmolested).

what want put in config.json tells stop complaining google.* (this simpler per-file in every file), can't find way this. it's starting problem i'm missing genuine mistakes amongst pages of unknown global symbol used: 'google...

please can tell me i'm doing wrong?


edit

thanks richard, have working. in case it's of use else, config.json looks (irrelevant bits removed):

{     ...      "config-warnings" :     {         "job-shadowing": ["common", "lint", "source-all", "build"]     },      "jobs" :     {         "build" :         {             "run" :             [                 "coffee-compile",                 "build-resources",                 "build-script",                 "build-files"             ]         },         "source-all" :         {             "run" :             [                 "coffee-compile",                 "source-all-script"             ]         },         "common":         {             "lint-check": {                 "allowed-globals": [                     "google"                 ]             }         },         "lint":         {             "lint-check": {                 "allowed-globals": [                     "google"                 ]             }         },         "coffee-compile" :         {             "extend": ["common"],             "shell" :             {                 "command": "coffee --bare --compile --output ./source/class/myapp/ ./coffee/myapp/*.coffee"             }         }     } } 

i assume using qooxdoo 3.0 (the current github master branch - not yet released soon) introduces @ignore syntax (superseding old #ignore syntax). got working in config.json:

{   "config-warnings" :   {     "job-shadowing" : ["source"],   },    ...    "jobs" :   {     ...      "source" :     {          "lint-check" : {          "allowed-globals" : [             "google"         ]          }        }      } } 

changing config.json should work in qooxdoo 2.1.1.

read on:


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -