Commit 6139b201 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Ignore erp5.* dynamic modules when statically checking syntax through Pylint.

parent b22daaed
......@@ -31,6 +31,15 @@ else:
return importnode.do_import_module(modname)
except astroid.InferenceError, ex:
# BEGIN
# XXX-arnau: Ignore ERP5 dynamic modules, hackish but required
# until proper introspection is implemented because otherwise it
# is impossible to validate Components importing other Components
# and as it is static analysis, the module should not be loaded
# anyway
if modname.startswith('erp5'):
return
# Handle ImportError try/except checking for missing module before
# falling back to code handling such case (#9386)
pnode = importnode.parent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment