forked from pyocd/pyOCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lgtm.yml
24 lines (23 loc) · 975 Bytes
/
.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
path_classifiers:
docs:
- scripts/generate_command_help.py
test:
# Mark all code under the src/ directory as test related.
# Really, the crc analyzer is not for test, but LGTL can't build embedded.
- src
- exclude: src/analyzer
queries:
# Exclude warning about 'if' or 'while' statements that have an 'else' clause, when there is not
# a 'break' statement within the main statement body (ie, it uses a 'return' to exit). This style
# is used in some places in pyocd to reflect that the 'else' body is logically part of the main
# statement. In particular, the Timeout class is used in this pattern:
#
# with Timeout(TIMEOUT) as t:
# while t.check():
# # code...
# else:
# # handle timeout...
#
# In some cases the 'while' block will exit with only a 'return', so the 'else' isn't really
# necessary, but retaining it maintains the expected pattern.
- exclude: py/redundant-else