Hi all,

I send this mail to talk about Javascript coding style improvement, like python 
has pep8, it could be interesting to have some rules for javascript too. JSHint 
provides some rules to perform this and I think it could be a great idea to 
discuss about which rules could be integrated into Horizon.

According to http://www.jshint.com/docs/options/ here is a list of the rules 
which seems interesting:
 - bitwise
 - curly
 - eqeqeq
 - forin
 - latedef
 - noempty
 - undef
 - unused with vars
 - trailing

 
Here is a second list of options which can be integrated but need some 
discussion before:
 - camelcase
 - quotmark

I already made a first patch for the indentation: 
https://review.openstack.org/#/c/64272/

_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to