On 1/6/14, 9:55 AM, Martin Thomson wrote:
  2. create some tools

These tools should help people conform to the style.

Primarily, what is needed is a tool with appropriate configuration that runs on 
the command line — e.g., mach reformat …  clang-format is looking like a good 
candidate for C/C++, it just needs a configuration.  For JavaScript, I’ve used 
the python js-beautify, but it’s pretty light on configuration options, it 
might need some hacking to make it better.

Ideally though, there should be set of configuration files for common editors.  
I’m certain there are plenty out there already.  Let’s bring them all together 
(attaching the 
fileshttps://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style  
might be enough).

That's a good idea. We codify our style guidelines and provide config files for popular editors and reformatters (like clang-format, astyle, and uncrustify) in the mozilla-central tree.


chris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to