-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
lgtm.yml
29 lines (26 loc) · 1.01 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
extraction:
# We don't use python in Chorus, so we ignore all files to prevent failing LGTM builds
python:
index:
exclude:
- "**/*.*"
# GitVersion doesn't natively support LGTM and fails when it finds a detached head,
# so we create and checkout a branch.
csharp:
after_prepare:
- git branch -f PR && git checkout PR
index:
# LGTM doesn't support .NET 6.0 which we use, so we tell LGTM to analyze
# the code without building which is less accurate but at least doesn't fail
# the check
buildless: true
nuget_restore: false
queries:
# Exclude python queries. Also exclude all other queries since that would cause a
# failing check again.
- exclude: py/*
- exclude: "*"
# The following queries are irrelevant for desktop apps
- exclude: cs/path-injection # Uncontrolled data used in path expression
- exclude: cs/command-line-injection # Uncontrolled command line
- exclude: cs/log-forging # Log entries created from user input