master
text 91 lines 2.65 KB
Raw
1 # Config file for checking the functional tests with pylint
2 #
3 # SPDX-License-Identifier: GPL-2.0-or-later
4
5 [DESIGN]
6
7 # Maximum number of arguments for function / method.
8 max-args=9
9
10 # Maximum number of attributes for a class (see R0902).
11 max-attributes=7
12
13 # Maximum number of boolean expressions in an if statement (see R0916).
14 max-bool-expr=5
15
16 # Maximum number of branch for function / method body.
17 max-branches=12
18
19 # Maximum number of locals for function / method body.
20 max-locals=15
21
22 # Maximum number of parents for a class (see R0901).
23 max-parents=7
24
25 # Maximum number of positional arguments for function / method.
26 max-positional-arguments=7
27
28 # Maximum number of public methods for a class (see R0904).
29 max-public-methods=20
30
31 # Maximum number of return / yield for function / method body.
32 max-returns=6
33
34 # Maximum number of statements in function / method body.
35 max-statements=50
36
37 # Minimum number of public methods for a class (see R0903).
38 min-public-methods=2
39
40
41 [MESSAGES CONTROL]
42
43 # Only show warnings with the listed confidence levels. Leave empty to show
44 # all. Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE,
45 # UNDEFINED.
46 confidence=HIGH,
47 CONTROL_FLOW,
48 INFERENCE,
49 INFERENCE_FAILURE
50
51 # Disable the message, report, category or checker with the given id(s). You
52 # can either give multiple identifiers separated by comma (,) or put this
53 # option multiple times (only on the command line, not in the configuration
54 # file where it should appear only once). You can also use "--disable=all" to
55 # disable everything first and then re-enable specific checks. For example, if
56 # you want to run only the similarities checker, you can use "--disable=all
57 # --enable=similarities". If you want to run only the classes checker, but have
58 # no Warning level messages displayed, use "--disable=all --enable=classes
59 # --disable=W".
60 disable=bad-inline-option,
61 c-extension-no-member,
62 consider-using-f-string,
63 file-ignored,
64 fixme,
65 import-outside-toplevel,
66 locally-disabled,
67 logging-fstring-interpolation,
68 logging-not-lazy,
69 missing-function-docstring,
70 missing-module-docstring,
71 missing-class-docstring,
72 raw-checker-failed,
73 suppressed-message,
74 too-many-locals,
75 too-many-statements,
76 use-implicit-booleaness-not-comparison-to-string,
77 use-implicit-booleaness-not-comparison-to-zero,
78 use-symbolic-message-instead,
79 useless-suppression,
80
81
82 [TYPECHECK]
83
84 # cv2 is a C extension module whose members are not visible to pylint
85 generated-members=cv2.*
86
87
88 [SIMILARITIES]
89
90 # Minimum lines number of a similarity.
91 min-similarity-lines=20