mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
b79ead9c84
* Replicate poco into base/poco/ * De-register poco submodule * Build poco from ClickHouse * Exclude poco from stylecheck * Exclude poco from whitespace check * Exclude poco from typo check * Remove x bit from sources/headers (the style check complained) * Exclude poco from duplicate include check * Fix fasttest * Remove contrib/poco-cmake/* * Simplify poco build descriptions * Remove poco stuff not used by ClickHouse * Glob poco sources * Exclude poco from clang-tidy
15 lines
796 B
Bash
Executable File
15 lines
796 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check for typos in code.
|
|
|
|
ROOT_PATH=$(git rev-parse --show-toplevel)
|
|
|
|
codespell \
|
|
--skip "*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp,*obfuscateQueries.cpp,d3-*.js,*.min.js,*.sum,${ROOT_PATH}/utils/check-style/aspell-ignore" \
|
|
--ignore-words "${ROOT_PATH}/utils/check-style/codespell-ignore-words.list" \
|
|
--exclude-file "${ROOT_PATH}/utils/check-style/codespell-ignore-lines.list" \
|
|
--quiet-level 2 \
|
|
"$ROOT_PATH"/{src,base/base,base/glibc-compatibility,base/harmful,base/pcg-random,base/readpassphrase,base/widechar_width,programs,utils} \ # all subdirs of base/ except poco
|
|
$@ | grep -P '.' \
|
|
&& echo -e "\nFound some typos in code.\nSee the files utils/check-style/codespell* if you want to add an exception."
|