You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by mr...@apache.org on 2009/02/17 18:40:47 UTC

svn commit: r745189 - /incubator/tashi/trunk/Makefile

Author: mryan3
Date: Tue Feb 17 18:40:47 2009
New Revision: 745189

URL: http://svn.apache.org/viewvc?rev=745189&view=rev
Log:
Added tidy target from TASHI-2
Additional paths/files are excluded based on current code structure
A patch that actually fixes the indentation is forth-coming


Modified:
    incubator/tashi/trunk/Makefile

Modified: incubator/tashi/trunk/Makefile
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/Makefile?rev=745189&r1=745188&r2=745189&view=diff
==============================================================================
--- incubator/tashi/trunk/Makefile (original)
+++ incubator/tashi/trunk/Makefile Tue Feb 17 18:40:47 2009
@@ -90,3 +90,13 @@
 	epydoc --html -o doc/html --include-log --name=tashi --graph=all --exclude=tashi.services --exclude=tashi.messaging.messagingthrift ./src/tashi
 rmdoc:
 	if test -d doc/html; then echo Removing HTML docs...; rm -rf ./doc/html; fi
+
+## for now only print warnings having to do with bad indentation. pylint doesn't make it easy to enable only 1,2 checks
+disabled_warnings=$(shell pylint --list-msgs|grep :W0| awk -F: '{ORS=","; if ($$2 != "W0311" && $$2 != "W0312"){ print $$2}}')
+pysrc=$(shell find . \! -path '*gen-py*' \! -path '*services*' \! -path '*messagingthrift*' \! -name '__init__.py' -name "*.py")
+tidy: $(addprefix tidyfile/,$(pysrc))
+	@echo Insuring .py files are nice and tidy!
+
+tidyfile/%: %
+	@echo Checking tidy for $*
+	pylint --report=no --disable-msg-cat=R,C,E --disable-msg=$(disabled_warnings) --indent-string="\t" $* 2> /dev/null;