Added a tool to check for typos; added dictionaries.

This commit is contained in:
Alexey Milovidov 2020-08-08 04:39:08 +03:00
parent c0fef71507
commit cacca83839
3 changed files with 29 additions and 0 deletions

13
utils/check-style/check-typos Executable file
View 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"

View 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

View File

@ -0,0 +1,7 @@
thenn
fpr
creat
parsering
nd
ect
pullrequest