ClickHouse/utils/check-style/check-typos
2020-08-08 17:10:27 +03:00

14 lines
429 B
Bash
Executable File

#!/usr/bin/env bash
# Check for typos in code.
ROOT_PATH=$(git rev-parse --show-toplevel)
CURDIR=$(dirname "${BASH_SOURCE[0]}")
codespell \
--skip '*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp' \
--ignore-words "${CURDIR}/codespell-ignore-words.list" \
--quiet-level 2 \
"$ROOT_PATH"/{src,base,programs,utils} \
$@ | grep -v -F --file="${CURDIR}/codespell-ignore-files.list"