2020-02-20 23:20:52 +08:00
|
|
|
#!/usr/bin/env bash
|
2018-12-29 01:55:20 +08:00
|
|
|
#
|
|
|
|
# see https://github.com/codespell-project/codespell
|
2018-12-29 02:05:42 +08:00
|
|
|
#
|
2018-12-29 01:55:20 +08:00
|
|
|
# in short:
|
|
|
|
# - pip install codespell
|
|
|
|
# - add ~/.local/bin to PATH
|
|
|
|
|
2020-02-20 23:20:52 +08:00
|
|
|
set -e
|
|
|
|
|
2021-03-15 02:25:05 +08:00
|
|
|
codespell $* -L "tim,gonna,cas,referer,fpr,vas,msdos,ifset,ba,tage,tolen,files',hist,lightening,wither,parm" `git ls-files|\
|
2020-02-20 23:20:52 +08:00
|
|
|
egrep -v '_fuzzer.in|_fuzzer.repro|\.der$|\.pem$|gnulib|ChangeLog|tests/gpg|\.png$|\.dat$|contrib/spell-checker|tests/certs/.*\.crt'`
|
|
|
|
|
|
|
|
#codespell $* -L "tim,gonna,cas,te,referer,ist,fpr,vas" src/wget.c contrib/spell-checker
|