<div dir="ltr">What licensing issues were brought up that prevent the use of JSLint or JSHint? Both are MIT licensed.<div><br></div><div>Granted, JSLint has an additional clause:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The Software shall be used for Good, not Evil.</blockquote><div><br></div><div>Maybe that's it? If so, Crockford has been known to make exceptions for organizations that wish to use his code for potentially evil purposes: <a href="https://www.youtube.com/watch?v=-C-JoyNuQJs&feature=player_detailpage#t=2480s">https://www.youtube.com/watch?v=-C-JoyNuQJs&feature=player_detailpage#t=2480s</a>.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 2, 2014 at 4:23 AM, Peter Belanyi <span dir="ltr"><<a href="mailto:pbelanyi@redhat.com" target="_blank">pbelanyi@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Recently we have been discussing the topic of Javascript linters for Horizon and Tuskar-UI with Radomir, and he told me that JSLint and JSHint can not be integrated into the test environment due to some license issues.<br>

<br>
I did some search and found Closure Linter [1] by Google which might be an alternative, and I wanted to get some feedback on it.<br>
<br>
Pros:<br>
- Open source, Apache License<br>
- Written in Python, available from pip<br>
- Used by Google, so probably it's production ready (or at least beta)<br>
<br>
Cons:<br>
- Javascript style is not configurable, it is hard coded to check The Google JavaScript Style [2], which might not exactly match OpenStack's desired coding style<br>
- It could take a long time to fix all js code to be accepted by the linter<br>
<br>
Does it look like something we could use?<br>
<br>
Thanks,<br>
Peter<br>
<br>
<br>
[1] <a href="https://developers.google.com/closure/utilities/" target="_blank">https://developers.google.com/closure/utilities/</a><br>
[2] <a href="http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml" target="_blank">http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml</a><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Kevin Conway
</div>