Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[squash] add some line breaks, and fix a few typos
  • Loading branch information
refack committed Apr 29, 2017
commit 9ab59c1943fdefe785eafdd44eaa85b975ccd625
20 changes: 12 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,27 @@ This document will guide you through the contribution process.
Things that are changed because of personal preference or style, like:
renaming of variables or functions, adding or removing white spaces,
reordering lines or whole code blocks. These sort of changes should have
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto for using full sentences, that will at least help everyone who’s not a native English speaker

a good reason since they cause unnecessary ["code churn"](https://blog.gitprime.com/why-code-churn-matters).
a good reason since they cause unnecessary
["code churn"](https://blog.gitprime.com/why-code-churn-matters).
As part of the project's strategy we maintain multiple release lines, code
churn might hinder back-porting changes to other lines. Also when you
change a line, your name will come up in `git blame` and might hide the
previous writer of the code.
change a line, your name will come up in `git blame` and shadow the name of
the previous author of that line.
3. #### Keep your change-set self contained but at a reasonable size
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: self-contained

Use your good judgment when making a big change. If you can't think of a
good reason but need to make a very big PR, try to break it into smaller
pieces (still as self-contained as possible), and cross-reference them.
You can also mark some of them as `blocked` pending the others.
4. #### Be aware of our style rules
As part of acceptance of a PR the changes must pass our linters. For C++ we
use Google's cpplint (with some ajustments) so following their [style-guide](https://github.com/google/styleguide)
should keep you in line.
For JS we use this [ruleset](https://github.com/nodejs/node/blob/master/.eslintrc.yaml)
for ESLint plus some of [our own custom rules](https://github.com/nodejs/node/tree/master/tools/eslint-rules).
For markdown we have a [style guide](https://github.com/nodejs/node/blob/master/doc/STYLE_GUIDE.md).
use Google's `cpplint` (with some adjustments) so following their
[style-guide](https://github.com/google/styleguide) should keep you in line.
For JS we use this
[rule-set](https://github.com/nodejs/node/blob/master/.eslintrc.yaml)
for ESLint plus some of
[our own custom rules](https://github.com/nodejs/node/tree/master/tools/eslint-rules).
For markdown we have a
[style guide](https://github.com/nodejs/node/blob/master/doc/STYLE_GUIDE.md).

### Step 1: Fork

Expand Down