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.
---
 Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 826a479..d1257a0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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 \
-- 
1.6.5.7

Reply via email to