Permalink
Browse files

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

  • Loading branch information...
1 parent 3b445d9 commit 66a839a742c4c81f2549c85e2534c596146581d1 @djcb committed Mar 6, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 Makefile.am
View
@@ -41,17 +41,19 @@ tags:
# which is a sign that it needs some refactoring. requires the pmccabe
# tool. If all is fine, it outputs nothing
cc10:
- @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
- | grep -v mu-str-normalize.c \
+ @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
+ | grep -v mu-str-normalize.c \
+ | grep -v tests \
| sort -nr | awk '($$1 > 10)'
# this warns about functions that are over 33 non-comment lines long, which is a
# sign that they need some refactoring. requires the pmccabe tool. if
# all is fine, it outputs nothing
# note, mu_msg_str_normalize is excempted from this rule.
line33:
- @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
- | grep -v mu-str-normalize.c \
+ @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
+ | grep -v mu-str-normalize.c \
+ | grep -v tests \
| awk '($$5 > 33)'
# get all todo/fixme messages

0 comments on commit 66a839a

Please sign in to comment.