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