From 23e33443c9faae79ec34ee55f8281d32f3884329 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 23 Oct 2018 20:35:49 +0200 Subject: [PATCH] Add lgtm.yml to analyzse C code with LGTM See https://lgtm.com/help/lgtm/customizing-file-classification Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- .lgtm.yml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ Makefile.am | 1 + 2 files changed, 61 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 000000000..b3d89002e --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,60 @@ +--- +# See https://lgtm.com/help/lgtm/customizing-file-classification +path_classifiers: + asn1: + - "asn1/.*" + asn1-autogenerated: + - "asn1/asn1c/.*" + ipaclient: + - client + - ipalcient + - util + ipalib: + - ipalib + - ipaplatform + - ipapython + ipaserver: + - ipaserver + ipatets: + - ipatests + daemons: + - daemons + install: + - install +extraction: + cpp: + prepare: + packages: + - build-essential + - autoconf + - automake + - autopoint + - libtool + - gettext + - python-all-dev + - python3-distutils + - python3-setutools + - python3-lesscpy + - nodejs + - uglifyjs + - systemd + - libssl-dev + - libsasl2-dev + - libldap2-dev + - libkrb5-dev + - libkrad-dev + - libini-config-dev + - libnss3-dev + - libsss-certmap-dev + - libsss-idmap-dev + - libsss-nss-idmap-dev + - libunistring-dev + - libxmlrpc-core-c3-dev + - samba-dev + - uuid-dev + configure: + command: + - ./autogen.sh --with-ipaplatform=debian + index: + build_command: + - make -j2 -s diff --git a/Makefile.am b/Makefile.am index 7655e1e7e..b9f924a2c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -253,6 +253,7 @@ rpmlint: freeipa.spec YAML_FILES = \ $(top_srcdir)/.travis.yml \ + $(top_srcdir)/.lgtm.yml \ $(wildcard $(top_srcdir)/.*.yaml) \ $(wildcard $(top_srcdir)/ipatests/prci_definitions/*.yaml)