Commit 8cfcf52
tools: refloat 10 Node.js patches to cpplint.py
Cherry-pick 12c8b4d
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: #17373
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Refs: 12c8b4d
Cherry-pick fc81e80
Original commit message:
Update cpplint.py to check for inline headers when the corresponding
header is already included.
PR-URL: #21521
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Refs: fc81e80
Cherry-pick cbc3dd9
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: #21010
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Refs: cbc3dd9
Cherry-pick 9029981
Original commit message:
tools: fix cpplint.py header rules
THIS COMMIT SHOULD GO WITH THE NEXT. IT WILL FIND NEW LINT.
PR-URL: #26306
Reviewed-By: Gireesh Punathil <[email protected]>
Refs: 9029981
Cherry-pick 0a25ace
Original commit message:
tools: move cpplint configuration to .cpplint
PR-URL: #27098
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Refs: 0a25ace
Cherry-pick afa9a72
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: #30876
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Refs: afa9a72
Cherry-pick e23bf8f
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: #31018
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Stephen Belanger <[email protected]>
Backport 3d954dc
Original commit message:
tools: remove readability/fn_size rule
PR-URL: #54663
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Refs: 3d954dc
Cherry-pick c7d7ec7
Original commit message:
tools: check for std::vector<v8::Local> in lint
PR-URL: #58497
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Refs: c7d7ec7
Cherry-pick e6d94ef
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: #60244
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Edy Silva <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ilyas Shabi <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Vladimir Morozov <[email protected]>
Refs: e6d94ef
PR-URL: #60901
Fixes: #607711 parent 11813f9 commit 8cfcf52
1 file changed
+148
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
| 310 | + | |
311 | 311 | | |
| 312 | + | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| |||
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| 355 | + | |
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
| |||
920 | 922 | | |
921 | 923 | | |
922 | 924 | | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
923 | 933 | | |
924 | 934 | | |
925 | 935 | | |
| |||
970 | 980 | | |
971 | 981 | | |
972 | 982 | | |
973 | | - | |
| 983 | + | |
974 | 984 | | |
975 | 985 | | |
976 | 986 | | |
| |||
1256 | 1266 | | |
1257 | 1267 | | |
1258 | 1268 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1263 | 1273 | | |
1264 | 1274 | | |
1265 | 1275 | | |
| |||
1272 | 1282 | | |
1273 | 1283 | | |
1274 | 1284 | | |
| 1285 | + | |
1275 | 1286 | | |
1276 | 1287 | | |
1277 | 1288 | | |
1278 | | - | |
1279 | 1289 | | |
1280 | 1290 | | |
1281 | 1291 | | |
| |||
2794 | 2804 | | |
2795 | 2805 | | |
2796 | 2806 | | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
2797 | 2822 | | |
2798 | 2823 | | |
2799 | 2824 | | |
| |||
4044 | 4069 | | |
4045 | 4070 | | |
4046 | 4071 | | |
4047 | | - | |
| 4072 | + | |
4048 | 4073 | | |
4049 | 4074 | | |
4050 | 4075 | | |
| |||
5432 | 5457 | | |
5433 | 5458 | | |
5434 | 5459 | | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
| 5487 | + | |
| 5488 | + | |
| 5489 | + | |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
| 5493 | + | |
| 5494 | + | |
| 5495 | + | |
| 5496 | + | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
| 5503 | + | |
| 5504 | + | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
| 5508 | + | |
| 5509 | + | |
| 5510 | + | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
| 5516 | + | |
| 5517 | + | |
| 5518 | + | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
5435 | 5529 | | |
5436 | 5530 | | |
5437 | 5531 | | |
| |||
5603 | 5697 | | |
5604 | 5698 | | |
5605 | 5699 | | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
5606 | 5703 | | |
5607 | 5704 | | |
5608 | 5705 | | |
| |||
6155 | 6252 | | |
6156 | 6253 | | |
6157 | 6254 | | |
6158 | | - | |
| 6255 | + | |
6159 | 6256 | | |
6160 | 6257 | | |
6161 | 6258 | | |
| |||
7313 | 7410 | | |
7314 | 7411 | | |
7315 | 7412 | | |
| 7413 | + | |
| 7414 | + | |
| 7415 | + | |
| 7416 | + | |
| 7417 | + | |
| 7418 | + | |
| 7419 | + | |
| 7420 | + | |
| 7421 | + | |
| 7422 | + | |
| 7423 | + | |
| 7424 | + | |
| 7425 | + | |
| 7426 | + | |
| 7427 | + | |
| 7428 | + | |
| 7429 | + | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
| 7446 | + | |
| 7447 | + | |
| 7448 | + | |
7316 | 7449 | | |
7317 | 7450 | | |
7318 | 7451 | | |
| |||
7470 | 7603 | | |
7471 | 7604 | | |
7472 | 7605 | | |
| 7606 | + | |
| 7607 | + | |
| 7608 | + | |
| 7609 | + | |
| 7610 | + | |
| 7611 | + | |
7473 | 7612 | | |
7474 | 7613 | | |
7475 | 7614 | | |
| |||
0 commit comments