Browse Source

fix_typos.sh script: GRASS related whitelist started

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73568 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 years ago
parent
commit
ed777fa039
1 changed files with 8 additions and 4 deletions
  1. 8 4
      tools/fix_typos.sh

+ 8 - 4
tools/fix_typos.sh

@@ -64,9 +64,13 @@ WORDS_WHITE_LIST="poSession,FIDN,TRAFIC,HTINK,repID,oCurr,INTREST,oPosition"
 WORDS_WHITE_LIST="$WORDS_WHITE_LIST,CPL_SUPRESS_CPLUSPLUS,SRP_NAM,ADRG_NAM,'SRP_NAM,AuxilaryTarget"
 # libtiff
 WORDS_WHITE_LIST="$WORDS_WHITE_LIST,THRESHHOLD_BILEVEL,THRESHHOLD_HALFTONE,THRESHHOLD_ERRORDIFFUSE"
+# GRASS GIS
+WORDS_WHITE_LIST="$WORDS_WHITE_LIST,thru"
 
-touch fix_typos/typos_whitelist.txt
-python3 fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \
-    -x fix_typos/typos_whitelist.txt --words-white-list=$WORDS_WHITE_LIST \
-    -D fix_typos/grassgis_dict.txt  .
+MYPATH=`pwd`
+
+touch $MYPATH/fix_typos/typos_whitelist.txt
+python3 $MYPATH/fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \
+       -x $MYPATH/fix_typos/typos_whitelist.txt --words-white-list=$WORDS_WHITE_LIST \
+       -D $MYPATH/fix_typos/grassgis_dict.txt  .