ClickHouse/utils/check-style/check-whitespaces

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
516 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
ROOT_PATH=$(git rev-parse --show-toplevel)
2023-02-07 21:28:27 +00:00
EXCLUDE_DIRS='build/|integration/|widechar_width/|glibc-compatibility/|memcpy/|consistent-hashing/|Parsers/New'
2024-10-03 00:31:47 +00:00
EXCLUDE_FILES='Settings\.cpp|FormatFactorySettingsDeclaration\.h'
2024-02-28 15:29:07 +00:00
NPROC=$(($(nproc) + 3))
# Double whitespaces
find $ROOT_PATH/{src,base,programs,utils} -name '*.h' -or -name '*.cpp' 2>/dev/null |
grep -vP $EXCLUDE_DIRS |
2024-10-03 00:31:47 +00:00
grep -vP $EXCLUDE_FILES |
2024-02-28 15:29:07 +00:00
xargs -P "$NPROC" -n 20 "${ROOT_PATH}/utils/check-style/double-whitespaces.pl"