aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fix_typos.sh6
-rw-r--r--scripts/typos_whitelist.txt1
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/fix_typos.sh b/scripts/fix_typos.sh
index fa3168f9..e8670700 100755
--- a/scripts/fix_typos.sh
+++ b/scripts/fix_typos.sh
@@ -46,9 +46,9 @@ if ! test -d fix_typos; then
cd ..
fi
-EXCLUDED_FILES="*configure,config.status,config.sub,*/autom4te.cache/*,libtool,aclocal.m4,depcomp,ltmain.sh,*.pdf,./m4/*,./nad/epsg,./fix_typos/*,./docs/build/*"
-WORDS_WHITE_LIST="metres,als,lsat,twon,ang,PJD_ERR_UNKNOW_UNIT_ID,PJD_ERR_LSAT_NOT_IN_RANGE,COLOR_GRAT"
+EXCLUDED_FILES="*configure,config.status,config.sub,*/autom4te.cache/*,libtool,aclocal.m4,depcomp,ltmain.sh,*.pdf,./m4/*,./fix_typos/*,./docs/build/*,./src/*generated*,./test/googletest/*"
+WORDS_WHITE_LIST="metres,als,lsat,twon,ang,PJD_ERR_LSAT_NOT_IN_RANGE,COLOR_GRAT"
python3 fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \
-x scripts/typos_whitelist.txt --words-white-list=$WORDS_WHITE_LIST \
- -D fix_typos/gdal_dict.txt ./include ./src ./docs ./cmake ./examples
+ -D fix_typos/gdal_dict.txt ./include ./src ./test ./docs ./cmake ./examples
diff --git a/scripts/typos_whitelist.txt b/scripts/typos_whitelist.txt
index e69de29b..98104423 100644
--- a/scripts/typos_whitelist.txt
+++ b/scripts/typos_whitelist.txt
@@ -0,0 +1 @@
+$EXE +units=us-ft +init=${INIT_FILE}:404 -E -f '%.3f' >>${OUT} <<EOF \ No newline at end of file