mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 05:43:53 -06:00
qapi/schema: add pylint suppressions
With this patch, pylint is happy with the file, so enable it in the configuration. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240315152301.3621858-5-armbru@redhat.com>
This commit is contained in:
parent
cebc18810a
commit
ce7fde0630
2 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,5 @@
|
||||||
[MASTER]
|
[MASTER]
|
||||||
|
|
||||||
# Add files or directories matching the regex patterns to the ignore list.
|
|
||||||
# The regex matches against base names, not paths.
|
|
||||||
ignore-patterns=schema.py,
|
|
||||||
|
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
|
|
||||||
# Disable the message, report, category or checker with the given id(s). You
|
# Disable the message, report, category or checker with the given id(s). You
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
# This work is licensed under the terms of the GNU GPL, version 2.
|
# This work is licensed under the terms of the GNU GPL, version 2.
|
||||||
# See the COPYING file in the top-level directory.
|
# See the COPYING file in the top-level directory.
|
||||||
|
|
||||||
|
# pylint: disable=too-many-lines
|
||||||
|
|
||||||
# TODO catching name collisions in generated code would be nice
|
# TODO catching name collisions in generated code would be nice
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
@ -83,6 +85,7 @@ class QAPISchemaEntity:
|
||||||
return c_name(self.name)
|
return c_name(self.name)
|
||||||
|
|
||||||
def check(self, schema):
|
def check(self, schema):
|
||||||
|
# pylint: disable=unused-argument
|
||||||
assert not self._checked
|
assert not self._checked
|
||||||
seen = {}
|
seen = {}
|
||||||
for f in self.features:
|
for f in self.features:
|
||||||
|
@ -113,6 +116,7 @@ class QAPISchemaEntity:
|
||||||
return not self.info
|
return not self.info
|
||||||
|
|
||||||
def visit(self, visitor):
|
def visit(self, visitor):
|
||||||
|
# pylint: disable=unused-argument
|
||||||
assert self._checked
|
assert self._checked
|
||||||
|
|
||||||
def describe(self):
|
def describe(self):
|
||||||
|
@ -131,6 +135,7 @@ class QAPISchemaVisitor:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def visit_needed(self, entity):
|
def visit_needed(self, entity):
|
||||||
|
# pylint: disable=unused-argument
|
||||||
# Default to visiting everything
|
# Default to visiting everything
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue