[Opengeoscience-developers] JSLint Example

Aashish Chaudhary aashish.chaudhary at kitware.com
Thu Apr 18 13:13:03 EDT 2013


nice.. that will work


On Thu, Apr 18, 2013 at 1:02 PM, Ben Burnett <benjam.arlyn at gmail.com> wrote:

> See http://www.jslint.com/lint.html
>
> You can tell JSlint which variables are global at the top of the js file
> and it will ignore them e.g.
>
> /* global vglModule, mat4, inherit  */
>
>
> On Thu, Apr 18, 2013 at 12:42 PM, Aashish Chaudhary <
> aashish.chaudhary at kitware.com> wrote:
>
>>
>> On Thu, Apr 18, 2013 at 12:23 PM, Manas Pawar <mp3381 at students.poly.edu>wrote:
>>
>>> Hello Ashish,
>>> You are right. This will override the variable declared in a different
>>> module. I guess jslint does not handle this. So we should undo the global
>>> variable declaration. Is it the same with other variables right?
>>>
>>
>> Yes, probably you can pass a flag like Ben suggested to ignore these
>> errors.
>>
>>
>>>
>>> Regards
>>> Manas Pawar
>>>
>>>
>>>
>>> -------- Original message --------
>>> Subject: Re: [Opengeoscience-developers] JSLint Example
>>> From: Aashish Chaudhary <aashish.chaudhary at kitware.com>
>>> To: Manas Pawar <mp3381 at students.poly.edu>
>>> CC: Ben Burnett <bburnett at poly.edu>,opengeoscience-developers <
>>> opengeoscience-developers at public.kitware.com>
>>>
>>>
>>> Hi Manas,
>>>
>>> How does it work? I mean vglModule is already defined in vgl/init.js if
>>> you redefine it, I guess we would lose its value from init.js/ NO?
>>>
>>> Thanks
>>>
>>>
>>>
>>> On Wed, Apr 17, 2013 at 5:55 PM, Manas Pawar <mp3381 at students.poly.edu>wrote:
>>>
>>>>    Hello Ben, Aashish,
>>>>
>>>>  I have attached an example .js file. Can you please review it. I have
>>>> preserved the TODO, set the indent to 2 spaces and will declare *
>>>> vgsModule*, *inherit, gl and mat4 as *global variables.
>>>>
>>>>  Regards
>>>> Manas Pawar
>>>>
>>>> _______________________________________________
>>>> Opengeoscience-developers mailing list
>>>> Opengeoscience-developers at public.kitware.com
>>>>
>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/opengeoscience-developers
>>>>
>>>>
>>>
>>>
>>> --
>>> | Aashish Chaudhary
>>> | R&D Engineer
>>> | Kitware Inc.
>>> | www.kitware.com
>>>
>>
>>
>>
>> --
>> | Aashish Chaudhary
>> | R&D Engineer
>> | Kitware Inc.
>> | www.kitware.com
>>
>> _______________________________________________
>> Opengeoscience-developers mailing list
>> Opengeoscience-developers at public.kitware.com
>>
>> http://public.kitware.com/cgi-bin/mailman/listinfo/opengeoscience-developers
>>
>>
>


-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/opengeoscience-developers/attachments/20130418/d3fd87d3/attachment.html>


More information about the Opengeoscience-developers mailing list