From: Dean Camera Date: Sun, 2 Jun 2013 20:03:13 +0000 (+0200) Subject: Add maintenance makefile rule to detect oversize code lines. X-Git-Tag: LUFA-130901-BETA~49 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/24ff863f027f9bb6089aebac6bcd0d24148feb36?ds=inline Add maintenance makefile rule to detect oversize code lines. --- diff --git a/Maintenance/makefile b/Maintenance/makefile index a0a19bcd5..8363fbed9 100644 --- a/Maintenance/makefile +++ b/Maintenance/makefile @@ -14,6 +14,10 @@ LUFA_ROOT := ../ all: +# Print a list of all filenames and line numbers that exceed an allowed threshold +line-lengths: + awk '{ if (length > 150) { print FILENAME, ":", FNR, "[", length, "]" } }' `find $(LUFA_ROOT) -name *.[ch]` + # Generate a header containing all library functions function-list: $(MAKE) -C $(patsubst %/,%,$(LUFA_ROOT))/LUFA doxygen DOXYGEN_OVERRIDE_PARAMS="GENERATE_HTML=no GENERATE_XML=yes"