qa: automate the 需'/须' check, and do not check whitespaces in patches.

This commit is contained in:
Casper Ti. Vector 2018-06-25 11:02:48 +08:00
parent 1b3b0827e0
commit ef95e4ae36

View File

@ -39,16 +39,16 @@ sync:
spell:
@echo '======================================================================'
@echo '$@: "模版" -> "模板"; "绪言" -> "序言"'
@echo '$@: "模板" -> "模版"; "绪言" -> "序言"; maybe "需" -> "须"'
@echo '----------------------------------------------------------------------'
grep -rE --exclude-dir=.git '模板|绪言' .
grep -rE --exclude-dir=.git '需|模板|绪言' .
@echo
blank:
@echo '======================================================================'
@echo '$@: check for trailing spaces and tabs'
@echo '----------------------------------------------------------------------'
! grep -r --exclude-dir=.git '[ ]\+$$' .
! grep -r --exclude-dir=.git '[ ]\+$$' --exclude '*.patch' .
@echo
tail: