* Makefile.am: ignore tests/ for make cc10 and make line33

This commit is contained in:
Dirk-Jan C. Binnema
2011-03-06 12:16:25 +02:00
parent 3b445d9fac
commit 66a839a742

View File

@ -41,8 +41,9 @@ tags:
# which is a sign that it needs some refactoring. requires the pmccabe # which is a sign that it needs some refactoring. requires the pmccabe
# tool. If all is fine, it outputs nothing # tool. If all is fine, it outputs nothing
cc10: cc10:
@$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \ @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
| grep -v mu-str-normalize.c \ | grep -v mu-str-normalize.c \
| grep -v tests \
| sort -nr | awk '($$1 > 10)' | sort -nr | awk '($$1 > 10)'
# this warns about functions that are over 33 non-comment lines long, which is a # this warns about functions that are over 33 non-comment lines long, which is a
@ -50,8 +51,9 @@ cc10:
# all is fine, it outputs nothing # all is fine, it outputs nothing
# note, mu_msg_str_normalize is excempted from this rule. # note, mu_msg_str_normalize is excempted from this rule.
line33: line33:
@$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \ @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
| grep -v mu-str-normalize.c \ | grep -v mu-str-normalize.c \
| grep -v tests \
| awk '($$5 > 33)' | awk '($$5 > 33)'
# get all todo/fixme messages # get all todo/fixme messages