xref: /openbmc/qemu/scripts/qapi/pylintrc (revision d044b7c3)
1[MASTER]
2
3# Add files or directories matching the regex patterns to the ignore list.
4# The regex matches against base names, not paths.
5ignore-patterns=schema.py,
6
7
8[MESSAGES CONTROL]
9
10# Disable the message, report, category or checker with the given id(s). You
11# can either give multiple identifiers separated by comma (,) or put this
12# option multiple times (only on the command line, not in the configuration
13# file where it should appear only once). You can also use "--disable=all" to
14# disable everything first and then reenable specific checks. For example, if
15# you want to run only the similarities checker, you can use "--disable=all
16# --enable=similarities". If you want to run only the classes checker, but have
17# no Warning level messages displayed, use "--disable=all --enable=classes
18# --disable=W".
19disable=fixme,
20        missing-docstring,
21        too-many-arguments,
22        too-many-branches,
23        too-many-statements,
24        too-many-instance-attributes,
25        consider-using-f-string,
26        useless-option-value,
27
28[REPORTS]
29
30[REFACTORING]
31
32[MISCELLANEOUS]
33
34[LOGGING]
35
36[BASIC]
37
38# Good variable names regexes, separated by a comma. If names match any regex,
39# they will always be accepted.
40#
41# Suppress complaints about short names.  PEP-8 is cool with them,
42# and so are we.
43good-names-rgxs=^[_a-z][_a-z0-9]?$
44
45[VARIABLES]
46
47[STRING]
48
49[SPELLING]
50
51[FORMAT]
52
53[SIMILARITIES]
54
55# Ignore import statements themselves when computing similarities.
56ignore-imports=yes
57
58[TYPECHECK]
59
60[CLASSES]
61
62[IMPORTS]
63
64[DESIGN]
65
66[EXCEPTIONS]
67