* Makefile.am, configure.ac: clear up the pmccabe stuff a bit

This commit is contained in:
Dirk-Jan C. Binnema
2010-02-04 22:45:54 +02:00
parent 3b1fbb79e9
commit 826aeb684d
2 changed files with 21 additions and 6 deletions

View File

@ -28,18 +28,18 @@ cleanupnote:
tags:
gtags
# this warns about function that have a cyclomatic complexity of > 10,
# 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'` | sort -nr | awk '($$1 > 10)'
@$(PMCCABE) `find -name '*.c' -o -name '*.cc'` | 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
line33:
@pmccabe -c `find -name '*.c' -o -name '*.cc'` | awk '($$5 > 33)'
@$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` | awk '($$5 > 33)'
EXTRA_DIST= \
TODO \