sourcegraph / srclib

srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
https://srclib.org
Other
942 stars 62 forks source link

unit: don't omit empty `Files` slice when marshaling. #124

Closed MaikuMori closed 9 years ago

MaikuMori commented 9 years ago

sourcegraph/srclib-javascript expects that unit json will always contain Files key.

Fixes sourcegraph/srclib-javascript#11.

This should have no side effects in other toolchains, but I didn't check.

sqs commented 9 years ago

Thanks!