# 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/"
    - "auxil/spicy"
    - "auxil/spicy-plugin"
    - "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:
        # Disabling Spicy in LGTM build since it seems to lead to a LGTM
        # performance edge case where analysis does not finish in 4h.
        - ./configure --build-type=debug --generator=Ninja --disable-spicy

    index:
      build_command:
        - ( cd build && ninja )
