node/tools
Michaël Zasso 64854f625b tools: add ESLint rule for assert.throws arguments
The second argument to "assert.throws" is usually a validation RegExp or
function for the thrown error. However, the function also accepts a
string and in this case it is interpreted as a message for the
AssertionError and not used for validation. It is common for people to
forget this and pass a validation string by mistake.
This new rule checks that we never pass a string literal as a second argument
to "assert.throws". Additionally, there is an option to enforce the
function to be called with at least two arguments. It is currently off
because we have many tests that do not comply with this rule.

PR-URL: https://github.com/nodejs/node/pull/10089
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2016-12-05 11:10:21 -05:00
..
configure.d tools: remove unnecessary imports and assignments 2016-07-08 20:17:08 +05:30
doc tools: remove unneeded escaping in generate.js 2016-12-05 03:22:15 +01:00
eslint tools: remove dangling eslint symlink 2016-11-03 05:32:01 -05:00
eslint-rules tools: add ESLint rule for assert.throws arguments 2016-12-05 11:10:21 -05:00
gyp deps: backport GYP fix to fix AIX shared suffix 2016-11-24 19:21:06 +08:00
icu deps: Intl: ICU 58 bump: configure/LICENSE/docs 2016-11-03 05:32:07 -05:00
msvs win,msi: mark INSTALLDIR property as secure 2016-10-10 15:11:00 -07:00
osx-pkg.pmdoc build: fix .pkg creation tooling 2015-09-06 21:38:09 +10:00
pkgsrc
rpm tools: add --prof-process flag to node binary 2015-12-08 02:00:46 +01:00
certdata.txt tools: update certdata.txt 2016-06-23 09:24:16 +02:00
check-imports.py tools: rewrite check-install.sh in python 2016-04-25 19:22:50 +05:30
compress_json.py src: add /json/protocol endpoint to inspector 2016-09-29 11:14:48 -07:00
cpplint.py tools: allow cpplint to run outside git repo 2016-06-28 21:21:21 +02:00
create_android_makefiles build: add script to create Android .mk files 2016-03-22 19:17:28 +01:00
create_expfile.sh build: fix dependencies on AIX 2016-08-29 16:20:18 -04:00
genv8constants.py
getmoduleversion.py build: configure --shared 2016-06-28 17:48:22 -04:00
getnodeversion.py build: configure --shared 2016-06-28 17:48:22 -04:00
gyp_node.py build: don't compile with -B, redux 2016-05-10 12:01:10 +02:00
install.py build: add correct shared library naming on OS X 2016-08-09 11:55:01 -04:00
js2c.py src,tools: speed up startup by 2.5% 2016-11-03 04:49:13 -05:00
jslint.js tools: add -F flag for fixing lint issues 2016-05-02 16:58:52 -07:00
license-builder.sh tools: update license-builder.sh for v8_inspector 2016-07-27 07:29:42 -07:00
license2rtf.js lib,tools: remove unneeded escaping of / 2016-12-05 03:20:38 +01:00
lsan_suppressions.txt build: add --enable-asan with builtin leakcheck 2015-09-06 21:38:00 +10:00
make-v8.sh v8: update make-v8.sh to use git 2016-11-11 10:48:36 -05:00
Makefile timers: backport f8193ab 2014-07-31 08:53:24 -07:00
mk-ca-bundle.pl tools: output include guards in mk-ca-bundle.pl 2016-06-23 09:25:30 +02:00
mkssldef.py build: export zlib symbols on Windows 2016-08-08 15:15:48 +02:00
osx-codesign.sh build: update build targets for io.js 2015-06-25 15:22:27 +10:00
osx-pkg-postinstall.sh
osx-productsign.sh build: update build targets for io.js 2015-06-25 15:22:27 +10:00
release.sh tools: use long format for gpg fingerprint 2016-11-07 15:58:32 -06:00
run-valgrind.py tools: make run-valgrind.py useful 2016-11-22 06:35:49 +01:00
sign.bat win,build: try multiple timeservers when signing 2016-10-18 16:28:39 -07:00
specialize_node_d.py tools: remove unnecessary imports and assignments 2016-07-08 20:17:08 +05:30
test-npm.sh tools: update npm test tooling for 3.3.10+ 2015-11-02 14:22:41 -05:00
test.py tools: allow test.py to use full paths of tests 2016-11-26 16:21:33 +08:00
update-authors.sh doc: make tools/update-authors.sh cross-platform 2015-03-11 13:25:17 +01:00
utils.py build: enable compilation for linuxOne 2016-03-29 18:52:48 -04:00