>>558
この際、気合いで一気に片付けるのもいいかもね。こんな感じで探せるはず。
# /\.rb\z/ ? $_ = `#$OPT_i -c #$_` : next でも文句いうのか・・・鬱

require "find"
require "getopts"
require "rbconfig"

getopts("", "i:#{Config::CONFIG['RUBY_INSTALL_NAME']}")

ARGV.each do |your_lib_dir|
Find.find(your_lib_dir) do |rb|
if /\.rb\z/ =~ rb then msg = `#$OPT_i -c #{rb}` else next end
puts msg if /Syntax OK/ !~ msg
end
end