Commit e0098923 authored by Iustin Pop's avatar Iustin Pop

Introduce a makefile lint rule

This runs pylint over all the python files. Yes, it takes a long while,
but it's the only way to properly analyze the source codes as only in
this way pylint can see all uses of the various modules/classes/etc.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 94fed7da
......@@ -473,6 +473,10 @@ ganeti:
check-local:
$(CHECK_PYTHON_CODE) $(check_python_code)
.PHONY: lint
lint: ganeti
pylint ganeti $(dist_sbin_SCRIPTS) $(dist_tools_SCRIPTS)
# a dist hook rule for catching revision control directories
distcheck-hook:
if find $(top_distdir) -name .svn -or -name .git | grep .; then \
......
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