node/tools
Michaël Zasso 8cfcf52db8 tools: refloat 10 Node.js patches to cpplint.py
Cherry-pick 12c8b4d154
Original commit message:
    This commit is a suggestion for adding a rule for NULL usages in the
    code base. This will currently report a number of errors which could be
    ignored using // NOLINT (readability/null_usage)

    PR-URL: https://github.com/nodejs/node/pull/17373
    Reviewed-By: Jon Moss <me@jonathanmoss.me>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>

Refs: 12c8b4d154

Cherry-pick fc81e80191
Original commit message:

    Update cpplint.py to check for inline headers when the corresponding
    header is already included.

    PR-URL: https://github.com/nodejs/node/pull/21521
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>

Refs: fc81e80191

Cherry-pick cbc3dd997e
Original commit message:

    src, tools: add check for left leaning pointers

    This commit adds a rule to cpplint to check that pointers in the code
    base lean to the left and not right, and also fixes the violations
    reported.

    PR-URL: https://github.com/nodejs/node/pull/21010
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>

Refs: cbc3dd997e

Cherry-pick 902998190a
Original commit message:

    tools: fix cpplint.py header rules

    THIS COMMIT SHOULD GO WITH THE NEXT. IT WILL FIND NEW LINT.

    PR-URL: https://github.com/nodejs/node/pull/26306
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>

Refs: 902998190a

Cherry-pick 0a25ace9c3
Original commit message:

    tools: move cpplint configuration to .cpplint

    PR-URL: https://github.com/nodejs/node/pull/27098
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>

Refs: 0a25ace9c3

Cherry-pick afa9a7206c
Original commit message:

    tools: refloat update link to google styleguide for cpplint

    This commit updates two old links to Google's C++ styleguide which
    currently result in a 404 when accessed.

    PR-URL: https://github.com/nodejs/node/pull/30876
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>

Refs: afa9a7206c

Cherry-pick e23bf8f771
Original commit message:

    tools,src: refloat forbid usage of v8::Persistent

    `v8::Persistent` comes with the surprising catch that it requires
    manual cleanup. `v8::Global` doesn’t, making it easier to use,
    and additionally provides move semantics. New code should always
    use `v8::Global`.

    PR-URL: https://github.com/nodejs/node/pull/31018
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>

Backport 3d954dcf81
Original commit message:

    tools: remove readability/fn_size rule

    PR-URL: https://github.com/nodejs/node/pull/54663
    Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

Refs: 3d954dcf81

Cherry-pick c7d7ec7cda
Original commit message:

    tools: check for std::vector<v8::Local> in lint

    PR-URL: https://github.com/nodejs/node/pull/58497
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>

Refs: c7d7ec7cda

Cherry-pick e6d94ef106
Original commit message:

    tools: add C++ lint rule to avoid using `String::Utf8Value`

    We should be using our own helpers for this instead.

    PR-URL: https://github.com/nodejs/node/pull/60244
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
    Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
    Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
    Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>

Refs: e6d94ef106
PR-URL: https://github.com/nodejs/node/pull/60901
Fixes: https://github.com/nodejs/node/issues/60771
2025-12-02 08:03:25 +00:00
..
actions tools: fix linter for semver-major release proposals 2025-11-01 07:11:01 +00:00
bootstrap doc,build,win: update docs with clang 2025-04-30 11:35:41 +00:00
clang-format tools: bump brace-expansion in /tools/clang-format 2025-06-14 20:14:51 +00:00
configure.d tools: make nodedownload module compatible with Python 3.14 2025-06-22 05:49:14 +00:00
dep_updaters tools: add temporal updater 2025-11-25 15:59:21 +00:00
doc tools: bump js-yaml from 4.1.0 to 4.1.1 in /tools/doc in the doc group 2025-11-20 08:01:53 +00:00
eslint tools: bump @eslint/plugin-kit from 0.3.3 to 0.3.4 in /tools/eslint 2025-08-11 23:40:13 +00:00
eslint-rules test: ensure assertions are reached on more tests 2025-11-11 09:56:18 +00:00
gyp tools: update gyp-next to 0.21.0 2025-11-12 08:19:16 +00:00
icu build: upgrade Python linter ruff, add rules ASYNC,PERF 2025-10-08 07:37:31 +00:00
inspector_protocol tools: fix inspector_protocol updater 2025-10-18 22:44:44 +00:00
lint-md tools: bump js-yaml from 4.1.0 to 4.1.1 in /tools/lint-md 2025-11-20 22:13:20 +00:00
macos-installer
msvs tools: update install_tools.bat old echo from 2019 to 2022 2025-11-18 17:21:39 +00:00
nix tools: update nixpkgs-unstable to 59b6c96beacc898566c9be1052ae806f383 2025-12-02 01:06:11 +00:00
pip
snapshot tools: improve error handling in node_mksnapshot 2025-09-07 12:34:36 +00:00
v8 tools: don't fetch V8 deps in the source tree 2025-12-01 15:12:10 +00:00
v8_gypfiles build: add temporal_capi gyp 2025-11-23 15:41:31 +00:00
zos
build_addons.py
certdata.txt crypto: update root certificates to NSS 3.117 2025-11-18 00:43:29 +00:00
checkimports.py
compress_json.py
copyfile.py
cpplint.py tools: refloat 10 Node.js patches to cpplint.py 2025-12-02 08:03:25 +00:00
create_android_makefiles
create_expfile.sh
enable_fips_include.py
executable_wrapper.h
find-inactive-collaborators.mjs
find-inactive-tsc.mjs
gen_node_def.cc
generate_config_gypi.py build: upgrade Python linter ruff, add rules ASYNC,PERF 2025-10-08 07:37:31 +00:00
getmoduleversion.py
getnapibuildversion.py
getnodeversion.py
gyp_node.py tools: remove deps/zlib/GN-scraper.py 2025-03-02 12:36:30 +00:00
gypi_to_gn.py
install.py build: upgrade Python linter ruff, add rules ASYNC,PERF 2025-10-08 07:37:31 +00:00
js2c.cc tools: dump config.gypi as json 2025-11-22 16:37:32 +00:00
license2rtf.mjs
license-builder.sh deps: update minimatch to 10.1.1 2025-11-17 23:34:43 +00:00
lint-pr-url.mjs
lint-readme-lists.mjs tools: clarify README linter error message 2025-07-25 15:15:22 +00:00
lint-sh.mjs
lsan_suppressions.txt
macos-firewall.sh
make-v8.sh tools: fix tools/make-v8.sh for clang 2025-09-17 14:45:42 +00:00
merge-wpt-reports.mjs
mk-ca-bundle.pl
mkssldef.py
osx-codesign.sh
osx-entitlements.plist
osx-notarize.sh
osx-productsign.sh
pseudo-tty.py
release.sh
run-valgrind.py
run-worker.js
search_files.py
sign.bat win,tools: add description to signature 2025-10-03 22:33:35 +00:00
specialize_node_d.py
test-npm-package.js
test-v8.bat
test.py test: fix debug test crashes caused by sea tests 2025-11-27 10:22:58 +00:00
update-timezone.mjs
utils.py
v8-json-to-junit.py
valgrind.supp