Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
6139b201
Commit
6139b201
authored
Feb 12, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Ignore erp5.* dynamic modules when statically checking syntax through Pylint.
parent
b22daaed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+9
-0
No files found.
product/ERP5Type/patches/pylint.py
View file @
6139b201
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment