* Makefile.am: set 35 lines as the new max for function length ('make line35')

This commit is contained in:
djcb 2012-03-24 11:18:35 +02:00
parent 6bc7ce040e
commit 07c36f392d
1 changed files with 3 additions and 3 deletions

View File

@ -52,17 +52,17 @@ cc10:
| grep -v tests \
| 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 35 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, some functions are exempted from this rule.
line33:
line35:
@$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
| grep -v mu-str-normalize.c \
| grep -v config_options_group_find \
| grep -v SCM_DEFINE_PUBLIC \
| grep -v tests \
| awk '($$5 > 33)'
| awk '($$5 > 35)'
# get all todo/fixme messages
fixme: