diff --git a/Makefile.am b/Makefile.am index 27a8766e..e2968260 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,9 +28,19 @@ 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)' +# this warns about functions that are over 30 non-comment lines long, which is a +# sign that they need some refactoring. requires the pmccabe tool. if +# all is fine, it outputs nothing +line30: + @pmccabe -c `find -name '*.c' -o -name '*.cc'` | sort -nr | awk '($$5 > 30)' + + EXTRA_DIST= \ TODO \