From c287f1235c9a52eda57ab22f872f0e8541162b31 Mon Sep 17 00:00:00 2001
From: Daniel Bevenius <daniel.bevenius@gmail.com>
Date: Fri, 3 Nov 2017 08:05:11 -0700
Subject: [PATCH] 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: https://github.com/nodejs/node/pull/16720
Backport-PR-URL: https://github.com/nodejs/node/pull/17172
PR-URL: https://github.com/nodejs/node/pull/16720
Reviewed-By: James M Snell <jasnell@gmail.com>
---
 vcbuild.bat | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vcbuild.bat b/vcbuild.bat
index 78f3c242455f3c..e6a6d0d20f7ac2 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -383,8 +383,10 @@ if %errorlevel% equ 0 goto exit
 echo %1 | findstr /c:"src\tree.h"
 if %errorlevel% equ 0 goto exit
 
-@rem skip subfolders under /src
-echo %1 | findstr /r /c:"src\\.*\\.*"
+echo %1 | findstr /r /c:"src\\tracing\\trace_event.h"
+if %errorlevel% equ 0 goto exit
+
+echo %1 | findstr /r /c:"src\\tracing\\trace_event_common.h"
 if %errorlevel% equ 0 goto exit
 
 echo %1 | findstr /r /c:"test\\addons\\[0-9].*_.*\.h"