From f1a2bbd99380602bc4d33833f1bc78e38899ae08 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Thu, 29 Nov 2012 11:20:21 +0100 Subject: fixed most of pylint errors also modified mof, so it's better parseable greatly reduced pylint errors and warnings LMI_SoftwareInstalledPackage now returns reference to Linux_ComputerSystem instead of CIM_ComputerSystem --- tools/pylint/plugins/cim_provider_checker.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/pylint/plugins') diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py index 253cb9d..f46e173 100644 --- a/tools/pylint/plugins/cim_provider_checker.py +++ b/tools/pylint/plugins/cim_provider_checker.py @@ -42,6 +42,9 @@ def supress_cim_provider_messages(linter, node): @param node is a subclass of CIMProvider2 """ assert isinstance(node, scoped_nodes.Class) + if '__init__' in node: + linter.disable('W0231', scope='module', + line=node['__init__'].lineno) if ( 'Values' in node and isinstance(node['Values'], scoped_nodes.Class)): linter.disable('R0903', scope='module', line=node['Values'].lineno) -- cgit