feat(apps): Add a tool to remove trailing whitespaces (#4074)
This commit is contained in:
parent
3a5d6fd001
commit
ac6a968242
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
@ -0,0 +1,3 @@
|
||||
# Change '*.cpp' and '*.h' to the extension you want to remove whitespaces in.
|
||||
find -name '*.cpp' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||
find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||
Loading…
x
Reference in New Issue
Block a user