File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ jobs:
177177 run : apt-get update -y
178178 - name : Install lint tools
179179 shell : bash
180- run : apt-get -y install moreutils lintian
180+ run : apt-get -y install python3-pip moreutils lintian
181181 - name : Install Python lint tools
182182 run : python3 -m pip install --no-input codespell==2.2.1
183183 - name : Enable Problem Matcher for GitHub annotations
Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ spellingfiles=$(eval "find ./ -type f -and ! \( \
7070 $SPELLINGBLACKLIST \
7171 \) | xargs" )
7272
73- # count the number of spellintian errors, including duplicate words
74- spellintian_errors=" $( zrun spellintian $spellingfiles 2>&1 ) "
75- spellintian_errors_count=$( [ " $spellintian_errors " == " " ] && printf " 0" || (printf " %s\n" " $spellintian_errors " | wc -l))
76- spellintian_severity=" $( [ " $spellintian_errors_count " == " 0" ] && printf " notice" || printf " error" ) "
77-
7873# count the number of codespell errors
7974codespell_errors=" $( zrun codespell --interactive 0 --disable-colors --check-filenames --check-hidden --quiet 2 --regex " [a-zA-Z0-9][\\ -'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles 2>&1 ) "
8075codespell_errors_count=" $( [ " $codespell_errors " == " " ] && printf " 0" || (printf " %s\n" " $codespell_errors " | wc -l)) "
8176codespell_severity=" $( [ " $codespell_errors_count " == " 0" ] && printf " notice" || printf " error" ) "
8277
78+ # count the number of spellintian errors, including duplicate words
79+ spellintian_errors=" $( zrun spellintian $spellingfiles 2>&1 ) "
80+ spellintian_errors_count=$( [ " $spellintian_errors " == " " ] && printf " 0" || (printf " %s\n" " $spellintian_errors " | wc -l))
81+ spellintian_severity=" $( [ " $spellintian_errors_count " == " 0" ] && printf " notice" || printf " error" ) "
82+
8383total_errors_count=" $(( $spellintian_errors_count + $codespell_errors_count )) "
8484total_severity=" $( [ " $total_errors_count " == " 0" ] && printf " notice" || printf " error" ) "
8585
@@ -98,4 +98,4 @@ echo "$codespell_severity: Found $codespell_errors_count spelling errors via cod
9898echo " $total_severity : Found $total_errors_count total spelling errors"
9999if [[ $total_errors_count -ne 0 ]]; then
100100 exit 1;
101- fi ;
101+ fi ;
You can’t perform that action at this time.
0 commit comments