Add command for checking syntax of modified files

This commit is contained in:
Pirate Praveen 2020-07-02 15:23:41 +05:30
parent 8dfcbfef9e
commit 75843f6e51
1 changed files with 3 additions and 0 deletions

View File

@ -1 +1,4 @@
# For whole tree
find . -name \*.rb -exec ruby -wc {} \; 2>&1 | grep error
# For changed files
for i in `git diff --name-only debian/13.1.1-1 HEAD | grep \.rb\$`; do ruby -wc $i; done