xref: /openbmc/qemu/tests/qemu-iotests/pylintrc (revision a1494010)
1576dc22bSJohn Snow[MESSAGES CONTROL]
2576dc22bSJohn Snow
3576dc22bSJohn Snow# Disable the message, report, category or checker with the given id(s). You
4576dc22bSJohn Snow# can either give multiple identifiers separated by comma (,) or put this
5576dc22bSJohn Snow# option multiple times (only on the command line, not in the configuration
6576dc22bSJohn Snow# file where it should appear only once). You can also use "--disable=all" to
7576dc22bSJohn Snow# disable everything first and then reenable specific checks. For example, if
8576dc22bSJohn Snow# you want to run only the similarities checker, you can use "--disable=all
9576dc22bSJohn Snow# --enable=similarities". If you want to run only the classes checker, but have
10576dc22bSJohn Snow# no Warning level messages displayed, use "--disable=all --enable=classes
11576dc22bSJohn Snow# --disable=W".
12576dc22bSJohn Snowdisable=invalid-name,
13576dc22bSJohn Snow        no-else-return,
14576dc22bSJohn Snow        too-few-public-methods,
15576dc22bSJohn Snow        too-many-arguments,
16576dc22bSJohn Snow        too-many-branches,
17576dc22bSJohn Snow        too-many-lines,
18576dc22bSJohn Snow        too-many-locals,
19576dc22bSJohn Snow        too-many-public-methods,
20eeb7314cSKevin Wolf        # pylint warns about Optional[] etc. as unsubscriptable in 3.9
21eeb7314cSKevin Wolf        unsubscriptable-object,
2296420a30SMichael Tokarev        # pylint's static analysis causes false positives for file_path();
233765315dSJohn Snow        # If we really care to make it statically knowable, we'll use mypy.
243765315dSJohn Snow        unbalanced-tuple-unpacking,
25ac4e14f5SEmanuele Giuseppe Esposito        # Sometimes we need to disable a newly introduced pylint warning.
26ac4e14f5SEmanuele Giuseppe Esposito        # Doing so should not produce a warning in older versions of pylint.
27ac4e14f5SEmanuele Giuseppe Esposito        bad-option-value,
28576dc22bSJohn Snow        # These are temporary, and should be removed:
29576dc22bSJohn Snow        missing-docstring,
30d0bc4123SVladimir Sementsov-Ogievskiy        too-many-return-statements,
313765315dSJohn Snow        too-many-statements,
323765315dSJohn Snow        consider-using-f-string,
33b031e9a5SJohn Snow
3495a556e7SJohn Snow
3595a556e7SJohn Snow[REPORTS]
3695a556e7SJohn Snow
3795a556e7SJohn Snow# Activate the evaluation score.
3895a556e7SJohn Snowscore=no
3995a556e7SJohn Snow
4095a556e7SJohn Snow
4195a556e7SJohn Snow[MISCELLANEOUS]
4295a556e7SJohn Snow
4395a556e7SJohn Snow# List of note tags to take in consideration, separated by a comma.
4495a556e7SJohn Snow# TODO notes are fine, but FIXMEs or XXXs should probably just be
4595a556e7SJohn Snow# fixed (in tests, at least).
4695a556e7SJohn Snownotes=FIXME,
4795a556e7SJohn Snow      XXX,
4895a556e7SJohn Snow
4995a556e7SJohn Snow
50b031e9a5SJohn Snow[FORMAT]
51b031e9a5SJohn Snow
52b031e9a5SJohn Snow# Maximum number of characters on a single line.
53b031e9a5SJohn Snowmax-line-length=79
54dd3e97dfSVladimir Sementsov-Ogievskiy
55dd3e97dfSVladimir Sementsov-Ogievskiy
56dd3e97dfSVladimir Sementsov-Ogievskiy[SIMILARITIES]
57dd3e97dfSVladimir Sementsov-Ogievskiy
58*a1494010SVladimir Sementsov-Ogievskiymin-similarity-lines=10
59