From e00989235d391849be40517ef2967a27944212a6 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 29 Dec 2009 12:04:27 +0100 Subject: [PATCH] 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: Iustin Pop Reviewed-by: Olivier Tharan --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 826a4792c..d1257a0ee 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 \ -- GitLab