From 6e2a6b2c7e7f02f9c93ca39af2d8ee95a595d8a8 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 12 Oct 2017 22:20:00 -0700 Subject: [PATCH] build,win: include addons-napi in linter Currently test/addons-napi files are not being included in the lint processing. This commit adds them. PR-URL: https://github.com/nodejs/node/pull/16181 Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- vcbuild.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index 8f03552a7d6f68..002fa8ecfcbd3a 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -468,7 +468,7 @@ goto lint-cpp :lint-cpp if not defined lint_cpp goto lint-js -call :run-lint-cpp src\*.c src\*.cc src\*.h test\addons\*.cc test\addons\*.h test\cctest\*.cc test\cctest\*.h test\gc\binding.cc tools\icu\*.cc tools\icu\*.h +call :run-lint-cpp src\*.c src\*.cc src\*.h test\addons\*.cc test\addons\*.h test\addons-napi\*.cc test\addons-napi\*.h test\cctest\*.cc test\cctest\*.h test\gc\binding.cc tools\icu\*.cc tools\icu\*.h call :run-python tools/check-imports.py goto lint-js @@ -502,6 +502,9 @@ if %errorlevel% equ 0 goto exit echo %1 | findstr /r /c:"test\\addons\\[0-9].*_.*\.cc" if %errorlevel% equ 0 goto exit +echo %1 | findstr /c:"test\\addons-napi\\common.h" +if %errorlevel% equ 0 goto exit + set "localcppfilelist=%localcppfilelist% %1" goto exit