Viewing File: /home/ubuntu/code_review/arcanist/src/lint/linter/__tests__/ruby/wvswc.lint-test

# ruby -wc says syntax ok
# ruby -w says blah.rb:2: undefined local variable or method `index' for main:Object (NameError)
if index < 0 and $VERBOSE
  $stderr.puts "warning: index is a negative number"
  if $DEBUG
    $stderr.puts "index value: #{index.inspect}"
    $stderr.puts "array state: #{array.inspect}"
  end
end
~~~~~~~~~~
Back to Directory File Manager