From baaf502363e68c3240b60adb7f7c91f5b4f0ba03 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 4 Dec 2013 08:05:08 -0800 Subject: [PATCH] Supports WarningCountingShellCommand in cppcheck and vera WarningCountingShellCommand allow us to have some measurements on the buildbot waterfall. --- Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index fbe0d724..f7acad0f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,10 +37,12 @@ test-regression: (cd tests && $(MAKE) test-regression) cppcheck: - cppcheck . --enable=all --force + cppcheck . --enable=all --force 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2; check-coding-style: - vera++ -rule L004 -param max-line-length=80 `(find . -iname "*.c" ; find . -iname "*.h") | xargs` - vera++ -rule L001 `(find . -iname "*.c" ; find . -iname "*.h") | xargs` + for i in `(find . -iname "*.c" ; find . -iname "*.h")`; \ + do vera++ -rule L004 -param max-line-length=80 $$i 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2; \ + vera++ -rule L001 $$i 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2; \ + done; .PHONY: test