Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <web-client> master : add check syntax task
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Thu, 9 Jul 2009 14:04:14 +0200
  • Message-id: <E1MOsMQ-0006zm-Fc@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 649b4c097e35691738cdd93671abe224b6cc9497
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Thu Jul 9 14:04:14 2009 +0200

add check syntax task
---
Rakefile | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Rakefile b/Rakefile
index eca219d..f489fe4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -14,3 +14,9 @@ task :default => :test
end
end

+desc "Check syntax of all Ruby files."
+task :check_syntax do
+ `find . -name "*.rb" |xargs -n1 ruby -c |grep -v "Syntax OK"`
+ puts "* Done"
+end
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages