gemnasium analyzer parses JSON output, ignores error
The "gemnasium" analyser always tries to parse the JSON output of the "eval client" even if the client returns an error.
In this particular example, the analyzer attempts to parse a JSON document containing the security alerts, even though the parsing of the dependency files has failed:
time="2018-02-26T12:47:41Z" level=fatal msg="Wrong file format version"
/usr/local/lib/ruby/2.3.0/json/common.rb:156:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
from /usr/local/lib/ruby/2.3.0/json/common.rb:156:in `new'
from /usr/local/lib/ruby/2.3.0/json/common.rb:156:in `parse'
from /app/lib/analyzers/gemnasium.rb:58:in `block in analyze'
from /app/lib/analyzers/gemnasium.rb:53:in `chdir'
from /app/lib/analyzers/gemnasium.rb:53:in `analyze'
from /app/lib/analyzers/gemnasium.rb:37:in `execute'
from /app/lib/analyze.rb:24:in `issues'
from /app/lib/run.rb:10:in `initialize'
from /app/bin/run:7:in `new'
from /app/bin/run:7:in `<main>'