Disable E1101/E1103 "Instace of ... has no ... member" in run_pylint
Disable E1101/E1103 "Instace of ... has no ... member" in run_pylint. There are too many false positives.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3984 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/run_pylint.py b/utils/run_pylint.py
index e011542..0bf5f95 100755
--- a/utils/run_pylint.py
+++ b/utils/run_pylint.py
@@ -50,7 +50,12 @@
blacklist = ['/contrib/*', '/frontend/afe/management.py']
# only show errors
+# there are two major sources of E1101/E1103 false positives:
+# * common_lib.enum.Enum objects
+# * DB model objects (scheduler models are the worst, but Django models also
+# generate some errors)
pylint_base_opts = ['--disable-msg-cat=warning,refactor,convention',
+ '--disable-msg=E1101,E1103',
'--reports=no',
'--include-ids=y']