This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lgtm.yml
54 lines (54 loc) · 1.8 KB
/
lgtm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# LGTM.com configuration file.
# This file specifies the requisited packages and build conventions.
---
queries:
- include: '*'
# We aren't concerned about this because magics are discouraged by code style
# and convention, and are 99% of the time already masked by a constant.
- exclude: cpp/integer-used-for-enum
# Code documentation is very much appreciated, but some code blocks are just
# hardcoded values to boost performance. To document every single code block
# is just insane in those cases. Take for example:
# data/text/encoding/single_byte_encoding.xpp
- exclude: cpp/poorly-documented-function
# Static variables, in this case constants are very useful to prevent magics
# in code. Obviously, the code is never finished, so having broad utilities
# that may've been unused is great, since writing them when you need them
# reduced performance and fun :)
- exclude: cpp/unused-static-variable
path_classifiers:
test:
- exclude: /
- test
- testsuites
- '**/*.test'
- exclude: test/util
some_custom_category: tools
extraction:
cpp:
prepare:
packages:
- openssl
- libssl-dev
- libglew-dev
- libglfw3-dev
- libfreetype6-dev
- googletest
- libgtest-dev
- googletest-tools
after_prepare:
- export GNU_MAKE=make
- export GIT=true
before_index: export GTEST_DIR=$LGTM_SRC/googletest
index:
all_solutions: true
build_command: $GNU_MAKE -j2 -s bin/test.txt objects engine
python:
after_prepare: 'export PATH=$LGTM_WORKSPACE/tools:$PATH'
python_setup:
version: '2'
requirements: Pillow
exclude_requirements: pywin32
requirements_files: required-packages.txt
setup_py: new-setup.py
before_index: antlr4 -Dlanguage=Python3 Grammar.g4