From 75a0e4ce727b9f6ecdffec856dd9943836129077 Mon Sep 17 00:00:00 2001 From: egecetin Date: Thu, 7 Nov 2024 20:43:24 +0300 Subject: [PATCH] add ignore list for clang-tidy --- ci/clang-tidy-all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/clang-tidy-all.sh b/ci/clang-tidy-all.sh index 7c19ab364..c2cd4031c 100755 --- a/ci/clang-tidy-all.sh +++ b/ci/clang-tidy-all.sh @@ -1,6 +1,8 @@ #!/bin/sh set -e +IGNORE_LIST=".*dirent.* .*DpdkDevice* .*KniDevice* .*MBufRawPacket* .*PfRingDevice* .*RemoteDevice* .*XdpDevice* .*WinPcap*" + SCRIPT=$(readlink -f "$0") SCRIPTPATH=$(dirname "${SCRIPT}") ROOTPATH=$(realpath "${SCRIPTPATH}"/..) @@ -30,6 +32,12 @@ fi # Process each file echo "$files" | while IFS= read -r file; do + for ignore in $IGNORE_LIST; do + if echo "$file" | grep -qE "$ignore"; then + echo "Ignoring: $file" + continue 2 + fi + done echo "Checking: $file" clang-tidy "$file" -p $BUILD_DIR --fix --checks=modernize-use-nullptr,modernize-use-override,performance-unnecessary-value-param done