The way to lint a script (that is, to only check its syntax) is to do
"ruby -c".

But I see in several places[1][2] on the net that people use "ruby -wc".

I always thought "-w" was for run-time warnings, not for compile-time
ones.

Can anybody give me an example for a Ruby code for which "ruby -wc"
gives different output than "ruby -c"?


[1]
https://github.com/SublimeLinter/SublimeLinter/blob/master/sublimelinter/modules/ruby.py
[2]
http://stackoverflow.com/questions/1302595/ruby-syntax-checking-in-vim/17246442#17246442

-- 
Posted via http://www.ruby-forum.com/.