Skip to content

Commit

Permalink
Add CS_PARAM option for codespell target, and show summary by default
Browse files Browse the repository at this point in the history
e.g. can run `make codespell CS_PARAM="-w"`
  • Loading branch information
mikee47 committed Dec 16, 2021
1 parent 6420ef4 commit 974d1fd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Sming/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,16 @@ cs-dev: ##Apply coding style to all files changed from current upstream develop
$(call ClangFormat,$(CS_DEV_FILES))

.PHONY: codespell
codespell: ##Check spelling
codespell: ##Check spelling (set CS_PARAM with additional command-line parameters)
@echo Running codespell...
$(Q)cd $(SMING_HOME)/.. && \
codespell --check-filenames \
codespell \
--check-filenames \
--skip $$(tr "\n" , < Tools/spelling/skip.txt) \
--ignore-words Tools/spelling/ignore.txt
--ignore-words Tools/spelling/ignore.txt \
--summary \
$(CS_PARAM)



##@Help
Expand Down

0 comments on commit 974d1fd

Please sign in to comment.