mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Added a tool to check for typos; added dictionaries.
This commit is contained in:
parent
c0fef71507
commit
cacca83839
13
utils/check-style/check-typos
Executable file
13
utils/check-style/check-typos
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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"
|
9
utils/check-style/codespell-ignore-files.list
Normal file
9
utils/check-style/codespell-ignore-files.list
Normal file
@ -0,0 +1,9 @@
|
||||
base/common/iostream_debug_helpers.h:156
|
||||
base/common/preciseExp10.cpp:54
|
||||
base/common/preciseExp10.cpp:87
|
||||
base/common/preciseExp10.cpp:88
|
||||
base/glibc-compatibility/musl/COPYRIGHT:49
|
||||
base/glibc-compatibility/musl/COPYRIGHT:82
|
||||
base/glibc-compatibility/musl/COPYRIGHT:83
|
||||
programs/server/Server.cpp:359
|
||||
utils/github/query.py:144
|
7
utils/check-style/codespell-ignore-words.list
Normal file
7
utils/check-style/codespell-ignore-words.list
Normal file
@ -0,0 +1,7 @@
|
||||
thenn
|
||||
fpr
|
||||
creat
|
||||
parsering
|
||||
nd
|
||||
ect
|
||||
pullrequest
|
Loading…
Reference in New Issue
Block a user