Skip to content
Permalink
Browse files

The Server landing page js libraries are full of typos, so skip the s…

…pell check for these
  • Loading branch information
nyalldawson committed Aug 31, 2020
1 parent 403b214 commit 5f8bc430c28614a1b550cc044221602970c870c4
Showing with 9 additions and 0 deletions.
  1. +9 −0 scripts/spell_check/check_spelling.sh
@@ -25,6 +25,9 @@
# extensions or files that should be excluded from file list if :% is appended in the spelling.dat file
EXCLUDE_SCRIPT_LIST='(\.(xml|svg|sip|pl|sh|qgs|badquote|cmake(\.in)?)|^(debian/copyright|cmake_templates/.*|tests/testdata/labeling/README.rst|tests/testdata/font/QGIS-Vera/COPYRIGHT.TXT|doc/NEWS\.html|debian/build/))$'

# always exclude these external files
EXCLUDE_EXTERNAL_LIST='(resources/server/api/ogc/static/landingpage/js/.*)$'

DIR=$(git rev-parse --show-toplevel)/scripts/spell_check

AGIGNORE=${DIR}/.agignore
@@ -160,6 +163,12 @@ for I in $(seq -f '%02g' 0 $((SPLIT-1)) ) ; do
echo "*** error: no file"
exit 1
fi

if [[ "$FILE" =~ $EXCLUDE_EXTERNAL_LIST ]]; then
echo "skipping external file $FILE for $(${GP}sed -r 's/\\//g' <<< $ERRORSMALLCASE)"
continue
fi

NUMBER=$(echo "$NOCOLOR" | cut -d: -f1)
ERRORLINE=$(echo "$NOCOLOR" | cut -d: -f2)
ERROR=$(echo "$LINE" | ${GP}sed -r 's/^.*?\x1B\[30;43m(.*?)\x1B\[0m.*?$/\1/')

0 comments on commit 5f8bc43

Please sign in to comment.
You can’t perform that action at this time.