From fea3fe999615d28005889756f2d47ca695efe4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 22 Apr 2020 15:56:17 +0200 Subject: [PATCH] Add configuration for LGTM.com static code analyzer --- .lgtm.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 0000000000..faf16513fa --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,35 @@ +extraction: + cpp: + prepare: + packages: + - "libxml2-dev" + - "libjson-c-dev" + - "libssl-dev" + - "zlib1g-dev" + - "libcmocka-dev" + - "pkg-config" + - "libcap2-dev" + - "libedit-dev" + - "libidn2-dev" + - "libmaxminddb-dev" + - "libuv1-dev" + configure: + command: + - "autoreconf -fi" + - "CFLAGS=\"-Og -g\" ./configure --enable-developer" +path_classifiers: + test: + - "lib/*/tests/" + - "bin/tests/" + docs: + - "**/*.xml" + - "**/*.docbook" + - "**/*.html" + - "**/*.1" + - "**/*.5" + - "**/*.8" +queries: + - exclude: libltdl/ + - exclude: fuzz/ + - exclude: "bin/tests/system/*/ans*/*.py" + - exclude: cpp/use-of-goto