* Makefile.am: set 35 lines as the new max for function length ('make line35')
This commit is contained in:
@ -52,17 +52,17 @@ cc10:
|
|||||||
| grep -v tests \
|
| 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 35 non-comment lines long, which is a
|
||||||
# sign that they need some refactoring. requires the pmccabe tool. if
|
# sign that they need some refactoring. requires the pmccabe tool. if
|
||||||
# all is fine, it outputs nothing
|
# all is fine, it outputs nothing
|
||||||
# note, some functions are exempted from this rule.
|
# note, some functions are exempted from this rule.
|
||||||
line33:
|
line35:
|
||||||
@$(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 config_options_group_find \
|
| grep -v config_options_group_find \
|
||||||
| grep -v SCM_DEFINE_PUBLIC \
|
| grep -v SCM_DEFINE_PUBLIC \
|
||||||
| grep -v tests \
|
| grep -v tests \
|
||||||
| awk '($$5 > 33)'
|
| awk '($$5 > 35)'
|
||||||
|
|
||||||
# get all todo/fixme messages
|
# get all todo/fixme messages
|
||||||
fixme:
|
fixme:
|
||||||
|
|||||||
Reference in New Issue
Block a user