Skip to content

Commit baaf502

Browse files
author
Felipe Zimmerle
committed
Supports WarningCountingShellCommand in cppcheck and vera
WarningCountingShellCommand allow us to have some measurements on the buildbot waterfall.
1 parent 3889434 commit baaf502

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile.am

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ test-regression:
3737
(cd tests && $(MAKE) test-regression)
3838

3939
cppcheck:
40-
cppcheck . --enable=all --force
40+
cppcheck . --enable=all --force 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2;
4141

4242
check-coding-style:
43-
vera++ -rule L004 -param max-line-length=80 `(find . -iname "*.c" ; find . -iname "*.h") | xargs`
44-
vera++ -rule L001 `(find . -iname "*.c" ; find . -iname "*.h") | xargs`
43+
for i in `(find . -iname "*.c" ; find . -iname "*.h")`; \
44+
do vera++ -rule L004 -param max-line-length=80 $$i 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2; \
45+
vera++ -rule L001 $$i 2>&1 1>&3 | sed 's/^/warning: /g' 1>&2; \
46+
done;
4547

4648
.PHONY: test

0 commit comments

Comments
 (0)