diff options
Diffstat (limited to 'tools/pylint/plugins/cim_provider_checker.py')
-rw-r--r-- | tools/pylint/plugins/cim_provider_checker.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py index 6dd09db..cf4e229 100644 --- a/tools/pylint/plugins/cim_provider_checker.py +++ b/tools/pylint/plugins/cim_provider_checker.py @@ -75,12 +75,12 @@ def supress_cim_provider_messages(linter, node): 'delete_instance') # implementation of generated methods may not use all arguments for child in node.get_children(): - if not isinstance(child, scoped_nodes.Function): + if ( not isinstance(child, scoped_nodes.Function) + or ( child.name not in generated_methods + and not child.name.startswith('cim_method_'))): continue - if (child.name in generated_methods - or child.name.startswith('cim_method_')): - linter.disable('W0613', scope='module', - line=child.lineno) + for arg in child.args.get_children(): + linter.disable('W0613', scope='module', line=arg.lineno) class CIMProviderChecker(BaseChecker): """ |