qa: automate the 需'/须' check, and do not check whitespaces in patches.
This commit is contained in:
parent
1b3b0827e0
commit
ef95e4ae36
6
utils/qa
6
utils/qa
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user