ClickHouse/utils/check-style/check-whitespaces
Alexey Milovidov db0c76c74e Fix style
2024-10-06 11:14:29 +08:00

13 lines
516 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'
EXCLUDE_FILES='Settings\.cpp|FormatFactorySettingsDeclaration\.h'
NPROC=$(($(nproc) + 3))
# Double whitespaces
find $ROOT_PATH/{src,base,programs,utils} -name '*.h' -or -name '*.cpp' 2>/dev/null |
grep -vP $EXCLUDE_DIRS |
grep -vP $EXCLUDE_FILES |
xargs -P "$NPROC" -n 20 "${ROOT_PATH}/utils/check-style/double-whitespaces.pl"