From b77e90152d119609ac78a7028383c3b79898b2cf Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 3 Dec 2013 11:09:31 -0800 Subject: [PATCH] Adds support for coding style and quality check Initial effort to get the code on shape. This will be executed by the buildbots as soon as they get ready for it. --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.am b/Makefile.am index 35b3797b..2e7cd529 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,4 +36,11 @@ test: check test-regression: (cd tests && $(MAKE) test-regression) +cppcheck: + (cppcheck . --enable=all --force) + +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`) + .PHONY: test