mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
makefile: add spellcheck
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
1b1ee1e18f
commit
ffc16330d8
18
make.inc
18
make.inc
@ -385,3 +385,21 @@ doc: isa-l.h
|
||||
$(MAKE) -C generated_doc/latex &> generated_doc/latex_build_api.log
|
||||
cp generated_doc/latex/refman.pdf isa-l_api_$(version).pdf
|
||||
|
||||
# Check spelling in the code with codespell.
|
||||
# See https://github.com/codespell-project/codespell for more details.
|
||||
# Codespell options explained:
|
||||
# -d -- disable colours (emacs colours it anyway)
|
||||
# -L -- List of words to be ignored
|
||||
# -S <skip> -- skip file types
|
||||
# -I FILE -- File containing words to be ignored
|
||||
#
|
||||
CODESPELL ?= codespell
|
||||
CS_IGNORE_WORDS ?= iinclude,struc,fo,ue,od,ba,padd,hist,unx,sav,datas
|
||||
|
||||
.PHONY: spellcheck
|
||||
spellcheck:
|
||||
$(CODESPELL) -d -L $(CS_IGNORE_WORDS) \
|
||||
-S "*.obj,*.o,*.a,*.so,*.lib,*~,*.so,*.so.*,*.d" \
|
||||
./erasure_code ./examples ./igzip ./include ./mem ./programs ./raid ./tests README.md SECURITY.md CONTRIBUTING.md \
|
||||
Makefile.unx Makefile.nmake Release_notes.txt LICENSE $(CS_EXTRA_OPTS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user