Skip to content

Commit

Permalink
qapi: Disable similarity checks in pylint entirely
Browse files Browse the repository at this point in the history
The pylint similarity checks cannot distinguish parameter lists from
other code; with the QAPISchemaVisitor interface having long lists of
parameters, these similarity checks fire off in a way that's difficult
to disable in a targeted way without littering the code with pylint
pragmas.

There is a change request filed to be able to ignore parameter lists,
see: pylint-dev/pylint#3619
  • Loading branch information
jnsnow authored and elmarco committed Oct 27, 2020
1 parent 9b20d2d commit a8a767e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/qapi/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ignore-patterns=schema.py,
# --disable=W".
disable=fixme,
missing-docstring,
similarities, # See https://github.com/PyCQA/pylint/issues/3619
too-many-arguments,
too-many-branches,
too-many-statements,
Expand Down

0 comments on commit a8a767e

Please sign in to comment.