-
We're new to LGTM but are very excited to have enabled it on our open source project for Magma. It's finding really useful insights on our js/ts, Go, and Python code; but, it's currently unable to analyze the C/C++ in the same repo. We use regular Makefile builds and care mostly about it analyzing the code in the ./lte/gateway/ directory. But it seems to not detect the build system at all. It's unclear to me how to resolve using a project configuration file, since there are no special configuration steps required. Can you please advise? Note that our project does require a number of libraries to be installed for openvswitch, but I don't think we're even getting that far. You can find our proejct here: I've also attached our extraction log. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The build is failing because LGTM wasn't able to guess that
Dependencies that exist as Ubuntu packages should be installed automatically. If that fails for some reason, the |
Beta Was this translation helpful? Give feedback.
The build is failing because LGTM wasn't able to guess that
lte/gateway
is the interesting directory. There are two ways you can provide that information.lgtm.yml
file and customize theindex
step with something likebuild_command: make -C lte/gateway
.Makefile
that's a wrapper forlte/gateway
and any other directories that should be compiled by default. Then you're also providing build information to humans and other automated build systems.Dependencies that exist as Ubuntu packages should be installed automatically. If that fails for some reason, the
.lgtm.yml
allows specifying them manually.