The way to lint a script (that is, to only check its syntax) is to do
But I see in several places on the net that people use “ruby -wc”.
I always thought “-w” was for run-time warnings, not for compile-time
Can anybody give me an example for a Ruby code for which “ruby -wc”
gives different output than “ruby -c”?