Issue 10 ci add support for code spelling checks (#231)
* added make targets spell and codespell for spelling checks * fix spelling errors detected by codespell * added codespell to github workflow Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -230,6 +230,18 @@ CPPCHECK_OPTIONS += --suppress=selfAssignment
|
||||
cppcheck:
|
||||
cppcheck $(CPPCHECK_OPTIONS) --quiet --force ./src/
|
||||
|
||||
IGNORE_WORDS = ba
|
||||
CODESPELL_OPTIONS = --write-changes --interactive 3 --enable-colors
|
||||
CODESPELL_OPTIONS += --ignore-words-list $(IGNORE_WORDS)
|
||||
.PHONY: codespell
|
||||
codespell:
|
||||
codespell $(CODESPELL_OPTIONS) ./src
|
||||
|
||||
SPELL_OPTIONS = --enable-colors --ignore-words-list $(IGNORE_WORDS)
|
||||
.PHONY: spell
|
||||
spell:
|
||||
codespell $(SPELL_OPTIONS) ./src
|
||||
|
||||
.PHONY: clean
|
||||
clean: ports-clean
|
||||
$(MAKE) -s -C src clean
|
||||
|
||||
Reference in New Issue
Block a user