xref: /openbmc/qemu/scripts/qapi/pylintrc (revision 1c00917409c9604cfc587045ba37395a48337dff)
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=parser.py,
6                schema.py,
7
8
9[MESSAGES CONTROL]
10
11# Disable the message, report, category or checker with the given id(s). You
12# can either give multiple identifiers separated by comma (,) or put this
13# option multiple times (only on the command line, not in the configuration
14# file where it should appear only once). You can also use "--disable=all" to
15# disable everything first and then reenable specific checks. For example, if
16# you want to run only the similarities checker, you can use "--disable=all
17# --enable=similarities". If you want to run only the classes checker, but have
18# no Warning level messages displayed, use "--disable=all --enable=classes
19# --disable=W".
20disable=fixme,
21        missing-docstring,
22        too-many-arguments,
23        too-many-branches,
24        too-many-statements,
25        too-many-instance-attributes,
26        consider-using-f-string,
27
28[REPORTS]
29
30[REFACTORING]
31
32[MISCELLANEOUS]
33
34[LOGGING]
35
36[BASIC]
37
38# Good variable names which should always be accepted, separated by a comma.
39good-names=i,
40           j,
41           k,
42           ex,
43           Run,
44           _,
45           fp,  # fp = open(...)
46           fd,  # fd = os.open(...)
47           ch,
48
49[VARIABLES]
50
51[STRING]
52
53[SPELLING]
54
55[FORMAT]
56
57[SIMILARITIES]
58
59# Ignore import statements themselves when computing similarities.
60ignore-imports=yes
61
62[TYPECHECK]
63
64[CLASSES]
65
66[IMPORTS]
67
68[DESIGN]
69
70[EXCEPTIONS]
71