From f76cba0af64a46334992253291f38f67ef3609d0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 14 Jul 2025 08:10:23 -1000 Subject: [PATCH] do not analyze platformio files --- script/clang-tidy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/clang-tidy b/script/clang-tidy index b5905e0e4e..7e51e3192b 100755 --- a/script/clang-tidy +++ b/script/clang-tidy @@ -152,7 +152,9 @@ def run_tidy(executable, args, options, tmpdir, path_queue, lock, failed_files): if sys.stdout.isatty(): invocation.append("--use-color") - invocation.append(f"--header-filter={os.path.abspath(basepath)}/.*") + invocation.append( + f"--header-filter=^{os.path.abspath(basepath)}/(?!.*\\.platformio/).*" + ) invocation.append(os.path.abspath(path)) invocation.append("--") invocation.extend(options)