Skip to content

doc: fix style inconsistencies in code examples #6313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 245 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
2dba5da
doc: fix style inconsistencies in code examples
saadq Apr 20, 2016
0c73c9f
src: fix --without-inspector build
addaleax May 31, 2016
0e9e149
buffer: fix creating from zero-length ArrayBuffer
RReverser Jun 6, 2016
6626919
inspector: process.exit should wait for inspector
Jun 8, 2016
5fd6d75
tools: fix license builder to work with icu-small
Jun 3, 2016
e2e615e
stream: reset awaitDrain after manual .resume()
addaleax Jun 5, 2016
08ea9ee
benchmark: add benchmark for url.format()
Trott Jun 9, 2016
f1d1071
src: make Sec-WebSocket-Key check case-insensitive
MylesBorins Jun 9, 2016
918159e
http: optimize checkIsHttpToken()
mscdex May 4, 2016
83432bf
http: optimize checkInvalidHeaderChar()
mscdex May 7, 2016
39fdf07
benchmark: increase http token check iterations
mscdex May 7, 2016
c8fa79f
test: add more http token/value checking tests
mscdex May 7, 2016
c570182
benchmark: don't convert arguments to numbers
mscdex May 28, 2016
6869846
stream: improve Readable.read() performance
mscdex May 31, 2016
f914f37
src: clean up string_search
mscdex Jun 6, 2016
1a1ff77
test: fix test-net-* error code check for getaddrinfo(3)
ncopa Feb 5, 2016
357f904
http: fix no dumping after `maybeReadMore`
indutny Jun 4, 2016
b5175e8
stream: ensure awaitDrain is increased once
davedoesdev Jun 14, 2016
874839c
doc: add internal link in GOVERNANCE.md
Trott Jun 12, 2016
336b027
url: return valid file: urls fom url.format()
Trott Jun 8, 2016
b77eb8c
punycode: update to v2.0.0
mathiasbynens Jun 10, 2016
e427150
2016-06-17, Version 6.2.2 (Current) Release
evanlucas Jun 16, 2016
62a858c
doc: fix events typo
greysonp Jun 17, 2016
44b9154
deps: switch to upstream v8_inspector
ofrobots Jun 14, 2016
81b6882
src: rename "node" script to "bootstrap_node"
danbev Jun 12, 2016
dfcf02b
inspector: fix coverity scan errors
Jun 16, 2016
62c8e7b
doc: fix cluster worker 'message' event
cjihrig Jun 15, 2016
9dfc8b9
inspector: fix inspector connection cleanup
Jun 1, 2016
de9a841
doc: fix broken link in vm.md
lpinca Jun 15, 2016
0815b94
vm: add ability to break on sigint/ctrl+c
addaleax May 8, 2016
dc57b9e
readline: return old status from _setRawMode
addaleax May 8, 2016
6a93ab1
repl: break on sigint/ctrl+c
addaleax May 8, 2016
740d8cf
doc: add `added:` information for repl
addaleax Jun 10, 2016
3fe3b41
test: add tests for some stream.Readable uses
addaleax Jun 10, 2016
a06ccdb
doc: correct `added:` information for fs.access
richardlau Jun 14, 2016
a92089b
src: alias BINARY to LATIN1
bnoordhuis Jun 13, 2016
5bddc9a
src: fix Windows segfault with `--eval`
May 23, 2016
bb33c28
tools: disable readability/function cpplint rule
bnoordhuis Jun 17, 2016
d7087df
src: use RAII for mutexes and condition variables
bnoordhuis Jun 17, 2016
781713d
src: remove unused isolate member
bnoordhuis Jun 18, 2016
193afef
doc: document socket.destroyed
tusharmath Apr 9, 2016
6dd093d
buffer,string_decoder: consolidate encoding validation logic
jasnell Jun 7, 2016
58a241d
doc: fix typos in the stream doc
vsemozhetbyt Jun 18, 2016
6be73fe
crypto,tls: perf improvements for crypto and tls getCiphers
jasnell Jun 8, 2016
f3d5efa
tls: avoid calling Buffer.byteLength multiple times
jasnell Jun 8, 2016
ecc48a1
doc: general improvements to os.md copy
jasnell Jun 3, 2016
92adbe4
doc: add argument information for socket.destroy()
Trott Jun 8, 2016
cdcfeb7
test: refresh the tmpdir before using
Trott Jun 16, 2016
f34caa9
test: mark test-vm-timeout flaky on windows
Trott Jun 22, 2016
efebd0b
doc: add RReverser to collaborators
RReverser Jun 22, 2016
a84b0f2
deps: backport 7dfb5beeec from V8 upstream
MylesBorins Jun 21, 2016
86fdbe0
doc: mention http request "aborted" events
kemitchell Jun 10, 2016
c2e6078
doc: add `added:` information for tls
italoacasas May 27, 2016
44981f2
tools: update certdata.txt
bnoordhuis Jun 22, 2016
d02d0b9
tools: output include guards in mk-ca-bundle.pl
bnoordhuis Jun 22, 2016
be85e6d
crypto: update root certificates
bnoordhuis Jun 22, 2016
ede98a7
test: remove internet/test-tls-connnect-cnnic
bnoordhuis Jun 23, 2016
0a8f5a0
doc: update build instructions for Windows
joaocgreis Jun 13, 2016
f3114e2
doc: fix repl defineCommand example
akki Jun 23, 2016
79f961a
doc: fix link in the stream doc
italoacasas Jun 21, 2016
a9c34ae
2016-06-23, Version 4.4.6 'Argon' (LTS)
Jun 6, 2016
71b29bb
2016-06-23 Version 0.10.46 (Maintenance) Release
rvagg Jun 23, 2016
fb146ce
2016-06-23 Version 0.12.15 (Maintenance) Release
rvagg Jun 23, 2016
6a94383
2016-06-23, Version 5.12.0 (Stable)
evanlucas Jun 23, 2016
5267f29
test: fix flaky test-fs-watch-encoding on OS X
Trott Jun 22, 2016
79ef3b6
string_decoder: fix bad utf8 character handling
mscdex Jun 15, 2016
5e8cbd7
test: add more UTF-8 StringDecoder tests
gagern Jun 16, 2016
f5cddad
doc: update "who to cc in issues" chart
Fishrock123 May 11, 2016
0b9e135
doc: add lance to collaborators
lance Jun 24, 2016
c964574
test: add test for exec() known issue
Trott Jun 22, 2016
efc3150
test: fix flaky test-vm-timeout
addaleax Jun 22, 2016
61196de
vm: test for abort condition of current invocation
addaleax Jun 22, 2016
1d75987
Revert "test: mark test-vm-timeout flaky on windows"
addaleax Jun 22, 2016
3f5623d
readline: allow passing prompt to constructor
evanlucas Jun 3, 2016
1db31a3
doc: minor rewording to the GitHub issue/pr templates
Fishrock123 Jun 24, 2016
d538811
deps: upgrade npm to 3.10.2
iarna Jun 24, 2016
a28d373
doc: add CTC meeting minutes 2016-06-15
joshgav Jun 16, 2016
9d56c40
repl: fix tab completion for defined commands
princejwesley Jun 22, 2016
926707f
doc: clarify child_process stdout/stderr types
sartrey Jun 22, 2016
3c09d1b
http: replace finish() callback with arrow function
originalfoo Jun 22, 2016
6abb06f
benchmark: `util._extend` vs `object.assign`
suryagh Jun 10, 2016
97dc38e
doc: fix "sign.verify" typo in crypto doc.
rus0000 Jun 24, 2016
4220e86
doc: fix typographic error in process doc
Trott Jun 26, 2016
9744928
doc: fix layout problem in v4 changelog
Jun 23, 2016
2787d70
deps: `MASM.UseSafeExceptionHandlers` for OpenSSL
indutny Jun 26, 2016
2996b5c
crypto: Allow GCM ciphers to have a longer IV length
mwain Apr 25, 2016
5615487
src: renaming ares_task struct to node_ares_task
danbev Jun 20, 2016
a1059af
buffer: speed up swap16/32, add swap64
zbjornson Jun 4, 2016
c0e48bf
repl: Enable tab completion for global properties
lance Jun 22, 2016
db21266
assert: remove unneeded arguments special handling
Trott Jun 24, 2016
ecd639a
deps: update v8_inspector
targos Jun 23, 2016
a77f6eb
inspector: print warning when used
evanlucas Jun 23, 2016
86e07b7
doc: general improvements to timers.md
jasnell May 23, 2016
fc10624
tools: disable unwanted cpplint rules again
bnoordhuis Jun 28, 2016
bb81d69
tools: add back --mode=tap to cpplint
bnoordhuis Jun 28, 2016
fadf66a
tools: allow cpplint to run outside git repo
bnoordhuis Jun 28, 2016
19ec5d7
src: fix build/c++tr1 cpplint warnings
bnoordhuis Jun 28, 2016
e9559d0
src: fix build/header_guard cpplint warnings
bnoordhuis Jun 28, 2016
29228c4
src: fix readability/braces cpplint warnings
bnoordhuis Jun 28, 2016
df3a192
src: fix readability/constructors cpplint warnings
bnoordhuis Jun 28, 2016
8e39522
src: fix readability/inheritance cpplint warnings
bnoordhuis Jun 28, 2016
0ba0eca
src: fix readability/namespace cpplint warnings
bnoordhuis Jun 28, 2016
d112df4
src: fix readability/nolint cpplint warnings
bnoordhuis Jun 28, 2016
1243134
src: fix runtime/indentation_namespace warnings
bnoordhuis Jun 28, 2016
ae0c650
src: fix runtime/int cpplint warnings
bnoordhuis Jun 28, 2016
2f2002a
src: fix runtime/references cpplint warnings
bnoordhuis Jun 28, 2016
0daffdf
src: fix whitespace/blank_line cpplint warnings
bnoordhuis Jun 28, 2016
97aeb0a
src: fix whitespace/indent cpplint warnings
bnoordhuis Jun 28, 2016
f52e26f
build: remove unused files from CPPLINT_FILES
bnoordhuis Jun 28, 2016
a26c3cd
src: lint node_win32_perfctr_provider.cc
bnoordhuis Jun 28, 2016
f1d2792
src: lint node_lttng_tp.h
bnoordhuis Jun 28, 2016
dbe4b58
src: lint v8abbr.h
bnoordhuis Jun 28, 2016
9a6439a
tools: fix -Wunused-variable warning
bnoordhuis Jun 28, 2016
f8d3f6f
src: remove obsolete NOLINT comments
bnoordhuis Jun 28, 2016
410296c
build: configure --shared
stefanmb Mar 27, 2016
21535e8
2016-06-28, Version 4.4.7 'Argon' (LTS)
Jun 24, 2016
72500f9
doc: add `added:` information for http
addaleax Jun 23, 2016
e8356b2
doc: add `added:` information for https
addaleax Jun 23, 2016
010ac70
doc: fix broken refs to url.parse() in http docs
addaleax Jun 23, 2016
bbf3838
test: test isFullWidthCodePoint with invalid input
Trott Jun 25, 2016
2cc2951
deps: update V8 to 5.1.281.69
targos May 27, 2016
b88dee2
deps: cherry-pick 1ef7487b from v8 upstream
mhdawson Apr 14, 2016
35ee1d1
v8: warn in Template::Set() on improper use
bnoordhuis Apr 19, 2016
6dfa533
deps: backport IsValid changes from 4e8736d in V8
targos May 3, 2016
a33909e
repl: fix repl after V8 upgrade
ofrobots Mar 4, 2016
9940766
test: fix tests after V8 upgrade
ofrobots Mar 4, 2016
c938735
dtrace: fix ustack helper for V8 5.1
ofrobots May 2, 2016
fbfe6c7
build: don't include V8 from node.gyp
targos Jun 29, 2016
d894648
deps: revert removal of V8::PromiseEvent
Jun 6, 2016
9beef23
deps: bring in V8 5.1 - 5.0 ABI compatibility
Jun 7, 2016
04c723d
tools: update cpplint to r456
bnoordhuis Jun 28, 2016
6b0f86a
timers: optimize linkedlist
Apr 26, 2016
6f75b66
timers: optimize `setImmediate()`
Apr 28, 2016
fba271b
benchmark: add `setImmediate()` benchmarks
Apr 27, 2016
5e60ded
src: check uv_async_init() return value
bnoordhuis Jun 22, 2016
88a8748
src: initialize encoding_ data member
bnoordhuis Jun 22, 2016
57387fa
src: guard against starting fs watcher twice
bnoordhuis Jun 22, 2016
664ba51
src: remove unused data member write_queue_size_
bnoordhuis Jun 22, 2016
0e82069
src: remove unused md_ data members
bnoordhuis Jun 22, 2016
d404566
src: remove duplicate HMAC_Init calls
bnoordhuis Jun 22, 2016
26a918f
src: remove deprecated HMAC_Init, use HMAC_Init_ex
bnoordhuis Jun 22, 2016
da4c1c3
src: fix use-after-return in zlib bindings
bnoordhuis Jun 22, 2016
c50e192
src: fix memory leak in WriteBuffers() error path
bnoordhuis Jun 22, 2016
ed3d8b1
src: fix bad logic in uid/gid checks
bnoordhuis Jun 22, 2016
5251fe5
test: add testcfg.py to test/abort/
bnoordhuis Jun 19, 2016
0672fca
test: fix abort/test-abort-uncaught-exception
bnoordhuis Jun 19, 2016
3c85f4e
test: don't use internal headers in add-on tests
bnoordhuis Jun 20, 2016
787eddf
src: print backtrace on fatal error
bnoordhuis May 13, 2016
e574f5b
src: print backtrace on abort/unreachable code
bnoordhuis May 13, 2016
64edd06
test: add abort test for backtrace validation
cjihrig May 16, 2016
be767cf
src: move ABORT() logic into node::Abort()
bnoordhuis Jun 19, 2016
92dab4a
src: print backtrace on failed CHECK/ASSERT
bnoordhuis Jun 19, 2016
dac16d8
test: check types for http request and response
bnoordhuis May 26, 2016
cae428a
tools: explicit path for V8 test tap output
Jun 28, 2016
08aff14
inspector: Do cleanups before notifying callback
Jun 27, 2016
3d6a01e
deps: update icu-small to include punycode datafiles
jasnell Jun 28, 2016
7de59ef
net: use icu's punycode implementation
jasnell Jun 21, 2016
02afb05
doc: fixing minor typo in AtExit hooks section
danbev Jun 29, 2016
3cac616
vm: don't print out arrow message for custom error
addaleax Jun 24, 2016
7dcc4af
build: drop unconditional openssl dep from cctest
bnoordhuis Jun 29, 2016
c5c28c3
debugger: make listen address configurable
bnoordhuis Oct 10, 2015
5e5ec2c
os: deprecate `tmpDir()` in favour of `tmpdir()`
Fishrock123 May 13, 2016
dc17432
deps: fix V8 5.1 tests
targos Jun 29, 2016
15157c3
repl: Default `useGlobal` to false in CLI REPL.
lance Mar 14, 2016
8da541b
Revert "child_process: measure buffer length in bytes"
Trott Jun 22, 2016
0268fd0
child_process: preserve argument type
Trott Jun 23, 2016
0548e5d
child_process: add fork/execFile arg validation
Trott Jun 24, 2016
99cfd53
test: test execFile/fork arg validation
ChuckLangford Dec 30, 2015
42de4bb
doc: improve usage of `zero`/`0`
Trott Jun 28, 2016
abce60c
test: remove common.PORT from http tests
Trott Jun 29, 2016
1299c27
doc: add guide for Node.js Timers
ryanmurakami May 18, 2016
7cbbec5
build: split CI rules in Makefile
joaocgreis Jun 15, 2016
fb4c022
test: handle SmartOS bug in test-tls-session-cache
Trott Jun 30, 2016
b3ec243
deps: upgrade npm to 3.10.3
zkat Jul 1, 2016
f47c394
test: listen on and connect to 127.0.0.1
bnoordhuis Jul 2, 2016
475dc43
doc: fix documentation of process.argv
tarungarg546 Jun 27, 2016
d80432d
build: enable big toc for release builds in AIX
gireeshpunathil Jul 4, 2016
b4d4fd9
build: export openssl symbols on windows
bnoordhuis Apr 18, 2016
a2ee21d
util: add an option for configuring break length
cjihrig Jun 30, 2016
cd4dbf3
doc: add `added:` information for timers
addaleax Jun 30, 2016
95a3c8f
build: Fix compile failure in backtrace_posix.cc
mhdawson Jul 5, 2016
1fe0708
test: really run addon tests on `make test`
addaleax Jul 5, 2016
af273b5
test: skip doctool tests when js-yaml is missing
addaleax Jun 8, 2016
6ae2043
src: move ParseArrayIndex() to src/node_buffer.cc
bnoordhuis Jun 30, 2016
630096b
src: guard against overflow in ParseArrayIndex()
bnoordhuis Jun 30, 2016
5a571a5
doc: fix detached child stdio example
cjihrig Jul 5, 2016
7628031
2016-07-06, Version 6.3.0 (Current)
Fishrock123 Jul 6, 2016
6ee9e29
doc: add bartosz sosnowski to colaborators
bzoz Jul 6, 2016
b10ee9d
doc: updating REPLACEME tag during release
gibfahn Jul 1, 2016
0f3149e
doc: fix minor style issues in http.md
Trott Jul 4, 2016
4c774e1
deps: remove extra field from v8::HeapStatistics
addaleax Jul 3, 2016
9d654a3
test: fix flaky test-net-write-slow
Trott Jul 6, 2016
c8eb62f
test: remove unused var from stream2 test
Trott Jul 7, 2016
24ee0d2
test: remove unused var in net-server-try-ports
Trott Jul 7, 2016
3ae4377
net: export isIPv4, isIPv6 directly from cares
thefourtheye Jun 29, 2016
89ede72
tools: remove unnecessary imports and assignments
thefourtheye Jun 29, 2016
18ae74c
src: suppress coverity message
cjihrig Jul 7, 2016
9fbe456
repl: add support for custom completions
diosney Jul 3, 2016
b9b49ee
test: fix flaky test-fs-read-buffer-tostring-fail
Trott Jul 7, 2016
245ac30
deps: update V8 to 5.1.281.75
bnoordhuis Jul 8, 2016
990c968
build: respect --shared-* flags for inspector deps
ChALkeR Jul 6, 2016
0a9f27b
build: add --enable-d8 configure option
bnoordhuis Jul 5, 2016
69ef9b1
build: add v8 requirement to test-v8* in Makefile
targos Jun 29, 2016
22492db
build: use BUILDTYPE when building V8 in Makefile
targos Jun 30, 2016
5a641e2
doc,dgram: fix addMembership documentation
santigimeno Jun 9, 2016
fa46e50
doc: added information on how to run the linter.
diosney Jul 4, 2016
e44b438
tools: remove unused variable
Trott Jul 7, 2016
2bd8942
test: remove unused var in test-tls-server-verify
Trott Jul 7, 2016
bc5b89f
test: remove unused vars from http/https tests
Trott Jul 7, 2016
7b0cf87
test: remove unused var from child-process-fork
Trott Jul 7, 2016
ce9456d
benchmark: remove unused variables
Trott Jul 7, 2016
a528d0d
doc: add benchmark who-to-CC info
Trott Jul 8, 2016
46f40cf
buffer: fix unintended unsigned overflow
indutny Jun 30, 2016
c9f6776
crypto: fix undefined behavior in ParseExtension
indutny Jun 30, 2016
839f3d9
deps: cherry-pick d721121 from v8 upstream
bnoordhuis Apr 8, 2016
f3a3888
test: move parallel/test-tty-* to pseudo-tty/
Fishrock123 Jul 8, 2016
aab3066
test: fix old tty tests
Fishrock123 Jul 8, 2016
fcae5e2
doc: dns.resolve fix callback argument description
qheaden Jul 4, 2016
e8a7003
tools: update ESLint, fix unused vars bug
Trott Jul 7, 2016
cfe76f2
src: disable stdio buffering
bnoordhuis Jul 8, 2016
2d77cba
test: fix flaky test-*-connect-address-family
Trott Jul 8, 2016
780776c
tools: cleanup no-build and build-only options
thefourtheye Jul 8, 2016
ef1f766
tools: fix broken format string
thefourtheye Jul 8, 2016
55250b8
doc: grammar fixes to event loop guide
ryanmurakami Jun 29, 2016
5b63d48
lib,benchmark,test: implement consistent braces
Trott Jul 9, 2016
863952e
tools: enforce JS brace style with linting
Trott Jul 9, 2016
b8b8c36
build: export more openssl symbols on Windows
Jul 10, 2016
4b9a0e4
doc: link and highlight Object.assign
thefourtheye Jul 12, 2016
bc7b719
doc: fix util.deprecate() example
evanlucas Jul 12, 2016
c01d61a
win,msi: Added Italian translation
mcollina Jan 12, 2016
a2a711a
dgram: generalized send queue to handle close
mcollina May 30, 2016
cbbddc4
tools: increase lint coverage
Trott Jul 10, 2016
a7105a8
test,doc: clarify `buf.indexOf(num)` input range
addaleax Jul 8, 2016
80478a5
doc: fix typo in the CHANGELOG_V6
vsemozhetbyt Jul 6, 2016
11b2306
tools: consistent .eslintrc formatting
silverwind Jul 12, 2016
e09c62a
win,msi: add zh-CN translations for the installer
pmq20 Jul 14, 2016
a58b48b
doc: various documentation formatting fixes
ChALkeR Jul 9, 2016
e9bb332
test: add common.rootDir
cjihrig Jul 12, 2016
6e15ae9
fs: rename event to eventType in fs.watch listener
claudiorodriguez Jul 1, 2016
4220c24
inspector: Unify event queues
Jun 1, 2016
4a40832
test: cleanup IIFE tests
cjihrig Jul 12, 2016
d11f475
test: improve error message in test-tick-processor
Trott Jul 12, 2016
89763bb
doc: fix style inconsistencies in code examples
saadq Apr 20, 2016
19d8604
Merge branch 'master' of github.com:saadq/node
saadq Jul 15, 2016
79fe070
Add missing semicolon
saadq Jul 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lib/internal/v8_prof_polyfill.js
lib/punycode.js
test/addons/??_*/
test/fixtures
test/**/node_modules
test/disabled
test/tmp*/
tools/doc/node_modules
tools/eslint
node_modules
65 changes: 33 additions & 32 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
rules:
# Possible Errors
# http://eslint.org/docs/rules/#possible-errors
comma-dangle: [2, "only-multiline"]
comma-dangle: [2, only-multiline]
no-control-regex: 2
no-debugger: 2
no-dupe-args: 2
Expand All @@ -14,7 +14,7 @@ rules:
no-empty-character-class: 2
no-ex-assign: 2
no-extra-boolean-cast: 2
no-extra-parens: [2, "functions"]
no-extra-parens: [2, functions]
no-extra-semi: 2
no-func-assign: 2
no-invalid-regexp: 2
Expand All @@ -38,46 +38,47 @@ rules:

# Strict Mode
# http://eslint.org/docs/rules/#strict-mode
strict: [2, "global"]
strict: [2, global]

# Variables
# http://eslint.org/docs/rules/#variables
no-delete-var: 2
no-undef: 2
no-unused-vars: [2, {"args": "none"}]
no-unused-vars: [2, {args: none}]

# Node.js and CommonJS
# http://eslint.org/docs/rules/#nodejs-and-commonjs
no-mixed-requires: 2
no-new-require: 2
no-path-concat: 2
no-restricted-modules: [2, "sys", "_linklist"]
no-restricted-modules: [2, sys, _linklist]

# Stylistic Issues
# http://eslint.org/docs/rules/#stylistic-issues
brace-style: [2, 1tbs, {allowSingleLine: true}]
comma-spacing: 2
eol-last: 2
indent: [2, 2, {SwitchCase: 1}]
key-spacing: [2, {mode: "minimum"}]
key-spacing: [2, {mode: minimum}]
keyword-spacing: 2
linebreak-style: [2, "unix"]
linebreak-style: [2, unix]
max-len: [2, 80, 2]
new-parens: 2
no-mixed-spaces-and-tabs: 2
no-multiple-empty-lines: [2, {max: 2}]
no-trailing-spaces: 2
quotes: [2, "single", "avoid-escape"]
quotes: [2, single, avoid-escape]
semi: 2
space-before-blocks: [2, "always"]
space-before-function-paren: [2, "never"]
space-in-parens: [2, "never"]
space-before-blocks: [2, always]
space-before-function-paren: [2, never]
space-in-parens: [2, never]
space-infix-ops: 2
space-unary-ops: 2

# ECMAScript 6
# http://eslint.org/docs/rules/#ecmascript-6
arrow-parens: [2, "always"]
arrow-spacing: [2, {"before": true, "after": true}]
arrow-parens: [2, always]
arrow-spacing: [2, {before: true, after: true}]
constructor-super: 2
no-class-assign: 2
no-confusing-arrow: 2
Expand All @@ -92,27 +93,27 @@ rules:
align-function-arguments: 2
align-multiline-assignment: 2
assert-fail-single-argument: 2
new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]
new-with-error: [2, Error, RangeError, TypeError, SyntaxError, ReferenceError]
no-deepEqual: 2
no-definegetter-definesetter: 2

# Global scoped method and vars
globals:
DTRACE_HTTP_CLIENT_REQUEST : false
LTTNG_HTTP_CLIENT_REQUEST : false
COUNTER_HTTP_CLIENT_REQUEST : false
DTRACE_HTTP_CLIENT_RESPONSE : false
LTTNG_HTTP_CLIENT_RESPONSE : false
COUNTER_HTTP_CLIENT_RESPONSE : false
DTRACE_HTTP_SERVER_REQUEST : false
LTTNG_HTTP_SERVER_REQUEST : false
COUNTER_HTTP_SERVER_REQUEST : false
DTRACE_HTTP_SERVER_RESPONSE : false
LTTNG_HTTP_SERVER_RESPONSE : false
COUNTER_HTTP_SERVER_RESPONSE : false
DTRACE_NET_STREAM_END : false
LTTNG_NET_STREAM_END : false
COUNTER_NET_SERVER_CONNECTION_CLOSE : false
DTRACE_NET_SERVER_CONNECTION : false
LTTNG_NET_SERVER_CONNECTION : false
COUNTER_NET_SERVER_CONNECTION : false
COUNTER_HTTP_CLIENT_REQUEST: false
COUNTER_HTTP_CLIENT_RESPONSE: false
COUNTER_HTTP_SERVER_REQUEST: false
COUNTER_HTTP_SERVER_RESPONSE: false
COUNTER_NET_SERVER_CONNECTION: false
COUNTER_NET_SERVER_CONNECTION_CLOSE: false
DTRACE_HTTP_CLIENT_REQUEST: false
DTRACE_HTTP_CLIENT_RESPONSE: false
DTRACE_HTTP_SERVER_REQUEST: false
DTRACE_HTTP_SERVER_RESPONSE: false
DTRACE_NET_SERVER_CONNECTION: false
DTRACE_NET_STREAM_END: false
LTTNG_HTTP_CLIENT_REQUEST: false
LTTNG_HTTP_CLIENT_RESPONSE: false
LTTNG_HTTP_SERVER_REQUEST: false
LTTNG_HTTP_SERVER_RESPONSE: false
LTTNG_NET_SERVER_CONNECTION: false
LTTNG_NET_STREAM_END: false
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
Thank you for reporting an issue. Please fill in the template below. If unsure
about something, just do as best as you're able.
Thank you for reporting an issue.
Please fill in as much of the template below as you're able.

Version: usually output of `node -v`
Platform: either `uname -a` output, or if Windows, version and 32 or 64-bit
Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name

If possible, please provide code that demonstrates the problem, keeping it as
Expand Down
13 changes: 6 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<!--
Thank you for your pull request. Please review below requirements.

Bug fixes and new features should include tests and possibly a benchmark.
Bug fixes and new features should include tests and possibly benchmarks.

Contributors guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] `make -j4 test` (UNIX) or `vcbuild test nosign` (Windows) passes
- [ ] a test and/or benchmark is included
- [ ] `make -j4 test` (UNIX), or `vcbuild test nosign` (Windows) passes
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] the commit message follows commit guidelines

- [ ] commit message follows commit guidelines

##### Affected core subsystem(s)
<!-- provide affected core subsystem(s) (like doc, cluster, crypto, etc) -->
<!-- Provide affected core subsystem(s) (like doc, cluster, crypto, etc). -->


##### Description of change
<!-- provide a description of the change below this comment -->
<!-- Provide a description of the change below this comment. -->
10 changes: 6 additions & 4 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ $ node -e "console.log('Hello from Node.js ' + process.version)"
Prerequisites:

* [Python 2.6 or 2.7](https://www.python.org/downloads/)
* Visual Studio 2013 / 2015, all editions including the Community edition, or
* Visual Studio Express 2013 / 2015 for Desktop
* One of:
* [Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
* [Visual Studio](https://www.visualstudio.com/) 2013 / 2015, all editions including the Community edition
* [Visual Studio](https://www.visualstudio.com/) Express 2013 / 2015 for Desktop
* Basic Unix tools required for some tests,
[Git for Windows](http://git-scm.com/download/win) includes Git Bash
and tools which can be included in the global `PATH`.
Expand All @@ -117,8 +119,8 @@ To run the tests:

To test if Node.js was built correctly:

```
$ node -e "console.log('Hello from Node.js ' + process.version)"
```text
> Release\node -e "console.log('Hello from Node.js', process.version)"
```

### Android / Android-based devices (e.g., Firefox OS)
Expand Down
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.2.1">6.2.1</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.3.0">6.3.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.2.2">6.2.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.2.1">6.2.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.2.0">6.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.1.0">6.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V6.md#6.0.0">6.0.0</a><br/>
Expand All @@ -52,7 +54,9 @@ release.
<a href="doc/changelogs/CHANGELOG_V5.md#5.0.0">5.0.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V4.md#4.4.5">4.4.5</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V4.md#4.4.7">4.4.7</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V4.md#4.4.6">4.4.6</a></b>
<a href="doc/changelogs/CHANGELOG_V4.md#4.4.5">4.4.5</a></b>
<a href="doc/changelogs/CHANGELOG_V4.md#4.4.4">4.4.4</a><br/>
<a href="doc/changelogs/CHANGELOG_V4.md#4.4.3">4.4.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V4.md#4.4.2">4.4.2</a><br/>
Expand All @@ -74,7 +78,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V4.md#4.0.0">4.0.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V012.md#0.12.14">0.12.14</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V012.md#0.12.15">0.12.15</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V012.md#0.12.14">0.12.14</a><br/>
<a href="doc/changelogs/CHANGELOG_V012.md#0.12.13">0.12.13</a><br/>
<a href="doc/changelogs/CHANGELOG_V012.md#0.12.12">0.12.12</a><br/>
<a href="doc/changelogs/CHANGELOG_V012.md#0.12.11">0.12.11</a><br/>
Expand All @@ -91,7 +96,8 @@ release.
<a href="doc/changelogs/CHANGELOG_V012.md#0.12.0">0.12.0</a><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V010.md#0.10.45">0.10.45</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V010.md#0.10.46">0.10.46</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V010.md#0.10.45">0.10.45</a><br/>
<a href="doc/changelogs/CHANGELOG_V010.md#0.10.44">0.10.44</a><br/>
<a href="doc/changelogs/CHANGELOG_V010.md#0.10.43">0.10.43</a><br/>
<a href="doc/changelogs/CHANGELOG_V010.md#0.10.42">0.10.42</a><br/>
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ $ ./configure && make -j8 test
Make sure the linter is happy and that all tests pass. Please, do not submit
patches that fail either check.

Running `make test` will run the linter as well unless one or more tests fail.
If you want to run the linter without running tests, use `make lint`.

If you are updating tests and just want to run a single test to check it, you
can use this syntax to run it exactly as the test harness would:

Expand Down
2 changes: 1 addition & 1 deletion GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ responsibility for the change. In the case of pull requests proposed
by an existing Collaborator, an additional Collaborator is required
for sign-off. Consensus should be sought if additional Collaborators
participate and there is disagreement around a particular
modification. See _Consensus Seeking Process_ below for further detail
modification. See [Consensus Seeking Process](#consensus-seeking-process) below for further detail
on the consensus model used for governance.

Collaborators may opt to elevate significant or controversial
Expand Down
52 changes: 30 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ ifdef QUICKCHECK
endif

ifdef ENABLE_V8_TAP
TAP_V8 := --junitout v8-tap.xml
TAP_V8_INTL := --junitout v8-intl-tap.xml
TAP_V8_BENCHMARKS := --junitout v8-benchmarks-tap.xml
TAP_V8 := --junitout $(PWD)/v8-tap.xml
TAP_V8_INTL := --junitout $(PWD)/v8-intl-tap.xml
TAP_V8_BENCHMARKS := --junitout $(PWD)/v8-benchmarks-tap.xml
endif

V8_TEST_OPTIONS = $(V8_EXTRA_TEST_OPTIONS)
Expand Down Expand Up @@ -112,13 +112,13 @@ cctest: all

v8:
tools/make-v8.sh v8
$(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS)
$(MAKE) -C deps/v8 $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS)

test: all
$(MAKE) build-addons
$(MAKE) cctest
$(PYTHON) tools/test.py --mode=release -J \
addon doctool known_issues message pseudo-tty parallel sequential
addons doctool known_issues message pseudo-tty parallel sequential
$(MAKE) lint

test-parallel: all
Expand Down Expand Up @@ -184,11 +184,25 @@ test-all: test-build test/gc/node_modules/weak/build/Release/weakref.node
test-all-valgrind: test-build
$(PYTHON) tools/test.py --mode=debug,release --valgrind

CI_NATIVE_SUITES := addons
CI_JS_SUITES := doctool known_issues message parallel pseudo-tty sequential

# Build and test addons without building anything else
test-ci-native: | test/addons/.buildstamp
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=release --flaky-tests=$(FLAKY_TESTS) \
$(TEST_CI_ARGS) $(CI_NATIVE_SUITES)

# This target should not use a native compiler at all
test-ci-js:
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=release --flaky-tests=$(FLAKY_TESTS) \
$(TEST_CI_ARGS) $(CI_JS_SUITES)

test-ci: | build-addons
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=release --flaky-tests=$(FLAKY_TESTS) \
$(TEST_CI_ARGS) addons doctool known_issues message pseudo-tty parallel \
sequential
$(TEST_CI_ARGS) $(CI_NATIVE_SUITES) $(CI_JS_SUITES)

test-release: test-build
$(PYTHON) tools/test.py --mode=release
Expand Down Expand Up @@ -232,22 +246,22 @@ test-timers-clean:


ifneq ("","$(wildcard deps/v8/tools/run-tests.py)")
test-v8:
test-v8: v8
# note: performs full test unless QUICKCHECK is specified
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \
--mode=$(BUILDTYPE_LOWER) $(V8_TEST_OPTIONS) $(QUICKCHECK_ARG) \
--no-presubmit \
--shell-dir=$(PWD)/deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) \
$(TAP_V8)

test-v8-intl:
test-v8-intl: v8
# note: performs full test unless QUICKCHECK is specified
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \
--mode=$(BUILDTYPE_LOWER) --no-presubmit $(QUICKCHECK_ARG) \
--shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) intl \
$(TAP_V8_INTL)

test-v8-benchmarks:
test-v8-benchmarks: v8
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) --mode=$(BUILDTYPE_LOWER) \
--download-data $(QUICKCHECK_ARG) --no-presubmit \
--shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) benchmarks \
Expand Down Expand Up @@ -299,9 +313,11 @@ docopen: out/doc/api/all.html
docclean:
-rm -rf out/doc

run-ci:
build-ci:
$(PYTHON) ./configure $(CONFIG_FLAGS)
$(MAKE)

run-ci: build-ci
$(MAKE) test-ci

RAWVER=$(shell $(PYTHON) tools/getnodeversion.py)
Expand Down Expand Up @@ -662,27 +678,19 @@ bench-idle:
$(NODE) benchmark/idle_clients.js &

jslint:
$(NODE) tools/jslint.js -J benchmark lib src test tools/doc \
tools/eslint-rules tools/jslint.js
$(NODE) tools/jslint.js -J benchmark lib src test tools

jslint-ci:
$(NODE) tools/jslint.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
benchmark lib src test tools/doc \
tools/eslint-rules tools/jslint.js
benchmark lib src test tools

CPPLINT_EXCLUDE ?=
CPPLINT_EXCLUDE += src/node_lttng.cc
CPPLINT_EXCLUDE += src/node_root_certs.h
CPPLINT_EXCLUDE += src/node_lttng_tp.h
CPPLINT_EXCLUDE += src/node_win32_perfctr_provider.cc
CPPLINT_EXCLUDE += src/queue.h
CPPLINT_EXCLUDE += src/tree.h
CPPLINT_EXCLUDE += src/v8abbr.h
CPPLINT_EXCLUDE += $(wildcard test/addons/??_*/*.cc test/addons/??_*/*.h)

CPPLINT_FILES = $(filter-out $(CPPLINT_EXCLUDE), $(wildcard \
deps/debugger-agent/include/* \
deps/debugger-agent/src/* \
src/*.c \
src/*.cc \
src/*.h \
Expand Down Expand Up @@ -715,4 +723,4 @@ endif
bench-all bench bench-misc bench-array bench-buffer bench-net \
bench-http bench-fs bench-tls cctest run-ci test-v8 test-v8-intl \
test-v8-benchmarks test-v8-all v8 lint-ci bench-ci jslint-ci doc-only \
$(TARBALL)-headers
$(TARBALL)-headers test-ci test-ci-native test-ci-js build-ci
Loading