Skip to content

Commit c287f12

Browse files
danbevMylesBorins
authored andcommitted
build: include src\tracing when linting on win
This commit excludes src\tracing\trace_event.h and src\tracing\trace_event_common.h from the linter but allows the rest of the files in src\tracing to be examined by the linter which is similar to what the Makefile does. Refs: #16720 Backport-PR-URL: #17172 PR-URL: #16720 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6269ba3 commit c287f12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vcbuild.bat

+4-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ if %errorlevel% equ 0 goto exit
383383
echo %1 | findstr /c:"src\tree.h"
384384
if %errorlevel% equ 0 goto exit
385385

386-
@rem skip subfolders under /src
387-
echo %1 | findstr /r /c:"src\\.*\\.*"
386+
echo %1 | findstr /r /c:"src\\tracing\\trace_event.h"
387+
if %errorlevel% equ 0 goto exit
388+
389+
echo %1 | findstr /r /c:"src\\tracing\\trace_event_common.h"
388390
if %errorlevel% equ 0 goto exit
389391

390392
echo %1 | findstr /r /c:"test\\addons\\[0-9].*_.*\.h"

0 commit comments

Comments
 (0)