From 7799ff95ee1478a2c66ae147323923e2d30622d9 Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 7 Dec 2018 07:38:20 +0100 Subject: [PATCH] test: do not lint macros files --- deps/v8/src/js/macros.py | 2 ++ src/notrace_macros.py | 3 +++ tools/dcheck_macros.py | 2 ++ tools/nodcheck_macros.py | 2 ++ 4 files changed, 9 insertions(+) diff --git a/deps/v8/src/js/macros.py b/deps/v8/src/js/macros.py index 4eaf990a58984a..7a65b520f0564e 100644 --- a/deps/v8/src/js/macros.py +++ b/deps/v8/src/js/macros.py @@ -28,6 +28,8 @@ # Dictionary that is passed as defines for js2c.py. # Used for defines that must be defined for all native JS files. +# flake8: noqa + define NONE = 0; define READ_ONLY = 1; define DONT_ENUM = 2; diff --git a/src/notrace_macros.py b/src/notrace_macros.py index e49dd350d1db23..334f9c0c7f7a87 100644 --- a/src/notrace_macros.py +++ b/src/notrace_macros.py @@ -1,6 +1,9 @@ # This file is used by tools/js2c.py to preprocess out the DTRACE symbols in # builds that don't support DTrace. This is not used in builds that support # DTrace. + +# flake8: noqa + macro DTRACE_HTTP_CLIENT_REQUEST(x) = ; macro DTRACE_HTTP_CLIENT_RESPONSE(x) = ; macro DTRACE_HTTP_SERVER_REQUEST(x) = ; diff --git a/tools/dcheck_macros.py b/tools/dcheck_macros.py index acc68fadb01abe..f22c08598fd694 100644 --- a/tools/dcheck_macros.py +++ b/tools/dcheck_macros.py @@ -1,3 +1,5 @@ +# flake8: noqa + macro DCHECK(x) = do { if (!(x)) (process._rawDebug("DCHECK: x == true"), process.abort()) } while (0); macro DCHECK_EQ(a, b) = DCHECK((a) === (b)); macro DCHECK_GE(a, b) = DCHECK((a) >= (b)); diff --git a/tools/nodcheck_macros.py b/tools/nodcheck_macros.py index 7bd2f209f511fc..0a59001b549fe5 100644 --- a/tools/nodcheck_macros.py +++ b/tools/nodcheck_macros.py @@ -1,3 +1,5 @@ +# flake8: noqa + macro DCHECK(x) = void(x); macro DCHECK_EQ(a, b) = void(a, b); macro DCHECK_GE(a, b) = void(a, b);