mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 05:04:41 +03:00
Make hunspell work regardless of dev environment
Add en_US dictionary from https://extensions.libreoffice.org/extensions/english-dictionaries/2017-01.01 rather than relying on system installed ones which may not exist and point the make logic at that dictionary
This commit is contained in:
@@ -86,7 +86,7 @@ check-badchars: $(SOURCEPATH) $(BUILD_DIR) Makefile
|
||||
.PHONY: hunspell-check
|
||||
hunspell-check: $(BUILD_DIR)/plain-nohtml.txt
|
||||
@echo '##################### Spell check ##################'
|
||||
hunspell -p hunspell/isocpp.dic -u < build/plain-nohtml.txt > $(BUILD_DIR)/hunspell-report.txt
|
||||
hunspell -d hunspell/en_US -p hunspell/isocpp.dic -u < build/plain-nohtml.txt > $(BUILD_DIR)/hunspell-report.txt
|
||||
@if [ -s $(BUILD_DIR)/hunspell-report.txt ]; then echo 'Warning: Spellcheck failed, fix words or add to dictionary:'; cat $(BUILD_DIR)/hunspell-report.txt; false; fi;
|
||||
|
||||
# only list words that are not in dict
|
||||
|
||||
Reference in New Issue
Block a user