Skip to content
DTrejo edited this page Jan 29, 2011 · 21 revisions

Email patches to [email protected] or post them to the node.js development mailing list

  1. Discuss large changes on mailing list before coding
  2. Javascript code style should follow Google’s JavaScript style guide and be run through the linter. `make jslint` to validate.
  3. C++ code should follow Google’s C++ style guide and be run through cpplint with `make cpplint`.
  4. Agree to the contributor agreement

From an email Ryan sent round on nodejs-dev on 28 october 2010:
Git commits

  1. the first line should be maximum 50 columns
  2. the second line should blank
  3. any additional lines should not exceed 80 columns.
  4. should have the author field properly filled out with your full
    name and email address.

Source Code

  1. C++ source style is defined by Google’s C++ style doc (see V8
    source code for example)
  2. JavaScript is to be camel cased, two space indention, and
    generally follow Node’s style.
  3. Lines should not exceed 80 columns.
  4. Tab characters are not allowed.

Clone this wiki locally