Enable LGTM to analyze some C++ source code

FreeCAD as a whole is too large for LGTM to analyze the entire codebase, the operation
times out after three hours. By focusing only on the core code, this patch allows the
automated testing framework there to analyze our C++ code, in addition to the Python
and JavaScript analsis it was already doing.
This commit is contained in:
Chris Hennes
2021-01-30 09:38:42 -06:00
committed by wwmayer
parent 096e538c9e
commit eb6167ff89

View File

@@ -10,3 +10,52 @@ extraction:
index:
filters:
exclude: "**/translations/*.ts"
cpp:
prepare:
packages:
- "cmake"
- "cmake-gui"
- "libboost-date-time-dev"
- "libboost-dev"
- "libboost-filesystem-dev"
- "libboost-graph-dev"
- "libboost-iostreams-dev"
- "libboost-program-options-dev"
- "libboost-python-dev"
- "libboost-regex-dev"
- "libboost-serialization-dev"
- "libboost-thread-dev"
- "libcoin-dev"
- "libeigen3-dev"
- "libgts-bin"
- "libgts-dev"
- "libkdtree++-dev"
- "libmedc-dev"
- "libocct-data-exchange-dev"
- "libocct-ocaf-dev"
- "libocct-visualization-dev"
- "libopencv-dev"
- "libproj-dev"
- "libpyside2-dev"
- "libshiboken2-dev"
- "libspnav-dev"
- "libvtk7-dev"
- "libx11-dev"
- "libxerces-c-dev"
- "libzipios++-dev"
- "occt-draw"
- "pyside2-tools"
- "python3-dev"
- "python3-matplotlib"
- "python3-pivy"
- "python3-ply"
- "python3-pyside2.qtcore"
- "python3-pyside2uic"
- "qtbase5-dev"
- "qttools5-dev"
- "swig"
configure:
command: "cmake ./ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_GUI=OFF -DBUILD_ARCH=OFF\
\ -DBUILD_DRAWING=OFF -DBUILD_IMAGE=OFF -DBUILD_INSPECTION=OFF -DBUILD_OPENSCAD=OFF\
\ -DBUILD_RAYTRACING=OFF -DBUILD_REVERSEENGINEERING=OFF -DBUILD_SURFACE=OFF -DBUILD_START=OFF\
\ -DBUILD_ROBOT=OFF -DBUILD_PATH=OFF -DBUILD_FEM=OFF"