Thanks! Perfect reply!

I just wonder why I didn't found that option myself ;)

  Kuddel


> In the Makefile you can add
> 
> LINT_ALLOWED_GLOBALS = google othername1 othername2
> 
> Works in 0.7.3, at least.
> 
>   -Bruce
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter
> Schneider
> Sent: Thursday, June 05, 2008 10:19 AM
> To: [email protected]
> Subject: [qooxdoo-devel] 'make lint': How to add "known globals"
> (qooxdoo0.7.x)
> 
> Hi group,
> 
> I'm currently cleaning up my sources a bit and found the 'make lint'
> target a
> really helpful tool!
> 
> But in my application I use some global objects from other APIs
> (Google-Maps to
> name one), so I get some messages like:
> 
> -----------------------------------------
> ../source/class/app/gis/Map.js (646,42): Use of undefined or global
> identifier
> 'G_SATELLITE_MAP'
> ../source/class/app/gis/Map.js (648,42): Use of undefined or global
> identifier
> 'G_HYBRID_MAP'
> ../source/class/app/gis/Map.js (650,42): Use of undefined or global
> identifier
> 'G_NORMAL_MAP'
> ../source/class/app/gis/mapprovider/Google.js (213,17): Use of undefined
> or
> global identifier 'GLatLng'
> ../source/class/app/gis/mapprovider/Google.js (216,37): Use of undefined
> or
> global identifier 'GLatLng'
> ../source/class/app/gis/mapprovider/Google.js (41,16): Use of undefined
> or
> global identifier 'GMap2'
> ..
> -----------------------------------------
> 
> 
> So I first started to convert to the newer "namespaced" version of the
> Google
> API where everything is located under the namespace "google.maps".
>   (GMap2        becomes google.maps.Map2,
>    GLatLng      becomes google.maps.LatLng,
>    G_NORMAL_MAP becomes google.maps.NORMAL_MAP,
>    etc. pp.)
> 
> This left only one 'undefined or global' identifier: "google"!
> 
> I added the identifier "google" to the KNOWN_IDENTIFIER array in
> qooxdoo/frontend/framework/tool/ecmalint.py and then of cause it didn't
> bother
> 'make lint' anymore...
> 
> ....BUT: is there another way to do this? I don't like to change the code
> of the
> build-system of qooxdoo. And I am not really good at python anyway :-/
> 
> Thanks in advance for any reply,
> 
>   Kuddel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to