mirror of
https://github.com/ru-de/faq.git
synced 2024-12-25 02:11:49 +00:00
fix spellcheck
This commit is contained in:
parent
2c03eb7b42
commit
b3c2b5d7d8
@ -24,7 +24,7 @@ while read FILE; do
|
||||
COMMIT=$(git log --pretty=format:"%H" -1 "$FILE");
|
||||
echo "Проверка изменений в файле $FILE на опечатки... ";
|
||||
|
||||
cat "$FILE" | sed 's/https\?:[^ ]*//g' | sed "s/[(][^)]*\.md[)]//g" | sed "s/[(]files[^)]*[)]//g" | hunspell -d dictionary,russian-aot-utf8,ru_RU,de_DE-utf8,en_US-utf8 > /tmp/hunspell.out
|
||||
cat "$FILE" | sed 's/https\?:[^ ]*//g' | sed "s/[(][^)]*\.md[)]//g" | sed "s/[(]files[^)]*[)]//g" | hunspell -d dictionary,russian-aot-utf8,ru_RU-utf8,de_DE-utf8,en_US-utf8 > /tmp/hunspell.out
|
||||
cat /tmp/hunspell.out | hunspell_parser > /tmp/hunspell_parsed.json
|
||||
/tmp/check_spell -file "$FILE" -commit=$COMMIT -pr-liner /tmp/pr_liner.json -hunspell-parsed-file /tmp/hunspell_parsed.json >> /tmp/comments.json
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user