Add LGTM config file

This commit is contained in:
Jon Siwek 2020-12-12 17:20:54 -08:00
parent 9658271d19
commit 2a48dd559a

45
.lgtm.yml Normal file
View file

@ -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 )