<div dir="ltr">The comments are also not formatted in a similar way throughout. We can also set some guidelines to use /*...*/ or // and whether to give spacing after //. The /* should be followed by line break, etc. Is it required or comments would work fine?<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 11, 2017 at 7:27 PM, Manish Bisht <span dir="ltr"><<a href="mailto:manish.bisht490@gmail.com" target="_blank">manish.bisht490@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I just checked the file "js/pmd/move.js" We can use the following<br>
coding standards.<br>
<br>
1. Function Names in Camel Case<br>
(<a href="https://google.github.io/styleguide/jsguide.html#naming-camel-case-defined" rel="noreferrer" target="_blank">https://google.github.io/<wbr>styleguide/jsguide.html#<wbr>naming-camel-case-defined</a>)<br>
2. Function braces should start after the function name instead of<br>
after line break<br>
(<a href="https://google.github.io/styleguide/jsguide.html#formatting-braces" rel="noreferrer" target="_blank">https://google.github.io/<wbr>styleguide/jsguide.html#<wbr>formatting-braces</a>)<br>
<br>
Thanks,<br>
<br>
Manish Bisht<br>
Email : <a href="mailto:hi@manishbisht.me">hi@manishbisht.me</a><br>
Website : <a href="https://manishbisht.me" rel="noreferrer" target="_blank">https://manishbisht.me</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Fri, Aug 11, 2017 at 7:13 PM, Michal Čihař <<a href="mailto:michal@cihar.com">michal@cihar.com</a>> wrote:<br>
> Hi<br>
><br>
> Isaac Bennetch píše v Pá 11. 08. 2017 v 09:28 -0400:<br>
>> I was looking at some of the JavaScript function names, in particular<br>
>> in js/pma/move.js and the names are a mess;<br>
><br>
> Well actually whole designer code is a bit messy - it's only piece of<br>
> our code which doesn't use jQuery and other modern features (except<br>
> some new pieces which have been added later). Most of this file is<br>
> actually 10 years old :-).<br>
><br>
>> we have many different<br>
>> variations of naming technique. That led me to look for any coding<br>
>> style guides; I know we have one for PHP files[1] but it's not clear<br>
>> if we use the same standards for JavaScript files. We can improve our<br>
>> documentation about this (unless I just missed some documentation<br>
>> that<br>
>> already exists). Any input about what we should use here? Most of the<br>
>> rest of the JS files seem to use PEAR-standard function names, at<br>
>> least based on a quick look I just did. If we all agree on that, we<br>
>> can just add a bit to the wiki telling people to use those same<br>
>> standards for JS files.<br>
><br>
> I'm not really sure what are best practices in the JS world, but we<br>
> should rather try to hold to that instead of using PHP style things in<br>
> JS. We can then configure Codacy (or other tool) to do such checks.<br>
><br>
> --<br>
> Michal Čihař | <a href="https://cihar.com/" rel="noreferrer" target="_blank">https://cihar.com/</a> | <a href="https://weblate.org/" rel="noreferrer" target="_blank">https://weblate.org/</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> Developers mailing list<br>
> <a href="mailto:Developers@phpmyadmin.net">Developers@phpmyadmin.net</a><br>
> <a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/<wbr>mailman/listinfo/developers</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
Developers mailing list<br>
<a href="mailto:Developers@phpmyadmin.net">Developers@phpmyadmin.net</a><br>
<a href="https://lists.phpmyadmin.net/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.phpmyadmin.net/<wbr>mailman/listinfo/developers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Thanks & Regards</div><div style="font-size:12.8px"><div></div></div><span style="font-size:12.8px"><font color="#888888"><div>Himanshu Agrawal</div><div><a href="mailto:himanshuagrawal1998@gmail.com">himanshuagrawal1998@gmail.com</a></div><div>Student Developer<br><img src="https://docs.google.com/uc?export=download&id=0B4NjDpDj_biwQ3E4S2J0TkRia2c&revid=0B4NjDpDj_biwZFF5TmgzMTM0cTdUMFhuQXRKeEJrVXRCUGdjPQ" width="96" height="15"></div></font></span></div></div></div>
</div></div>