do not analyze platformio files

This commit is contained in:
J. Nick Koston 2025-07-14 08:10:23 -10:00
parent ab454e9928
commit f76cba0af6
No known key found for this signature in database

View File

@ -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)