Add command for checking syntax of modified files
This commit is contained in:
parent
8dfcbfef9e
commit
75843f6e51
1 changed files with 3 additions and 0 deletions
3
debian/check-ruby-syntax.sh
vendored
3
debian/check-ruby-syntax.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue