From 2a48dd559aa4355a2c6cc4f7d6dc7bc53e94d390 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Sat, 12 Dec 2020 17:20:54 -0800 Subject: [PATCH] Add LGTM config file --- .lgtm.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .lgtm.yml diff --git a/.lgtm.yml b/.lgtm.yml new file mode 100644 index 0000000000..15857c99e2 --- /dev/null +++ b/.lgtm.yml @@ -0,0 +1,45 @@ +# LGTM config file docs: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file + +# Results from files under any classifier will be excluded from LGTM stats. +path_classifiers: + library: + - "auxil/broker/caf/" + - "auxil/libkqueue/" + - "auxil/highwayhash/" + - "auxil/rapidjson/" + - "src/3rdparty/" + +# Filter out alerts that aren't concerning. +queries: + - exclude: cpp/use-of-goto + - exclude: cpp/short-global-name + - exclude: cpp/fixme-comment + - exclude: cpp/function-in-block + +extraction: + cpp: + prepare: + # Ubuntu packages to install. + packages: + - cmake + - make + - ninja-build + - gcc + - g++ + - flex + - bison + - libpcap-dev + - libssl-dev + - python3 + - python3-dev + - swig + - zlib1g-dev + - libkrb5-dev + + configure: + command: + - ./configure --build-type=debug --generator=Ninja + + index: + build_command: + - ( cd build && ninja )