From 50bab1670d816789f06a26856f81ff4806252028 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <47090312+singiamtel@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:58:22 +0100 Subject: [PATCH] Ignore 3rd party files when checking for copyright notice (#1426) --- .github/workflows/c++-code-formatting.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/c++-code-formatting.yml b/.github/workflows/c++-code-formatting.yml index a470cbb5..f0b5294a 100644 --- a/.github/workflows/c++-code-formatting.yml +++ b/.github/workflows/c++-code-formatting.yml @@ -194,6 +194,7 @@ jobs: incorrect_files=() for file in "${files[@]}"; do case $file in + */3rdparty/*) continue ;; # ignore vendored files *.cxx|*.h|*.C) first=$cpp_first rest=$cpp_rest ;; *.cmake|*CMakeLists.txt) first=$hash_first rest=$hash_rest ;; *) echo "error: unknown file type for $file" >&2; exit 1 ;;