Most of the code I write is in Ruby, and every once in a while, I make some typo ( which only gets caught after a while ). This can suck when you have your scripts do some long running tasks, and you return to them only to find out you had a typo.
Is there an actively developed lint tool for Ruby that could help me overcome this? Would it be possible to use it across a system that works with a lot of source files ( some of them loaded dynamically )?
EDIT: Take this snippet as an example:
a = 20
b = 30
puts c
EDIT: to win bounty, show me a tool that will detect the c variable as not created/undefined.
I'd like something that will alert me that c
doesn't exist.