ClickHouse/utils/check-style/check-whitespaces
2024-02-28 15:59:17 +01:00

10 lines
384 B
Bash
Executable File

#!/usr/bin/env bash
ROOT_PATH=$(git rev-parse --show-toplevel)
EXCLUDE_DIRS='build/|integration/|widechar_width/|glibc-compatibility/|memcpy/|consistent-hashing/|Parsers/New'
# Double whitespaces
find $ROOT_PATH/{src,base,programs,utils} -name '*.h' -or -name '*.cpp' 2>/dev/null |
grep -vP $EXCLUDE_DIRS |
parallel -X "${ROOT_PATH}/utils/check-style/double-whitespaces.pl"