From 5fee87c23ebcdf8cf11078a9ecaa6e474498787f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= <159546+serprex@users.noreply.github.com> Date: Sat, 19 Sep 2026 18:09:26 +0000 Subject: Replace tabs with spaces (#7223) --- scripts/check-no-tabs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/check-no-tabs.sh (limited to 'scripts') diff --git a/scripts/check-no-tabs.sh b/scripts/check-no-tabs.sh new file mode 100755 index 000000000..b469baed9 --- /dev/null +++ b/scripts/check-no-tabs.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Fail if any C/C++ source in soh/ outside soh/include contains a tab. + +cd "$(dirname "$0")/.." || exit 2 + +if git grep -n "$(printf '\t')" -- 'soh/*.c' 'soh/*.cpp' 'soh/*.h' 'soh/*.hpp' ':!soh/include'; then + echo "replace tabs with spaces" + exit 1 +fi -- cgit v1.2.3