Convert ruby-lint from bash to ruby