diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-02-28 20:07:52 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-02-28 20:07:52 +0000 |
| commit | a71a154f961b16a2bfb623f33ee2ca51b66052e6 (patch) | |
| tree | 1b4db7396aaa0cdbd6af8ff8770defa2162c86ff /BuildTests/StaticAnalysisTest/makefile | |
| parent | 506d60d694ce780a7e94c3d246dfefd000fb9233 (diff) | |
Add source static analysis build test using "cppcheck".
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2074 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'BuildTests/StaticAnalysisTest/makefile')
| -rw-r--r-- | BuildTests/StaticAnalysisTest/makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile new file mode 100644 index 00000000..1556bbd9 --- /dev/null +++ b/BuildTests/StaticAnalysisTest/makefile @@ -0,0 +1,23 @@ +#
+# LUFA Library
+# Copyright (C) Dean Camera, 2011.
+#
+# dean [at] fourwalledcubicle [dot] com
+# www.lufa-lib.org
+#
+
+# Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
+
+# Path to the root of the LUFA tree to scan
+LUFA_ROOT_PATH = ../../
+
+# Filenames or directories (including fragments) to exclude from the analysis
+EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
+
+# Output message template for found warnings and errors
+MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
+
+all:
+ cppcheck -q -f --error-exitcode=1 --template $(MESSAGE_TEMPLATE) --enable=style --suppress=variableScope $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
+
+%:
\ No newline at end of file |
