3 # Copyright (C) Dean Camera, 2011.
5 # dean [at] fourwalledcubicle [dot] com
9 # Static anlysis of the entire LUFA source tree, using the free cross-platform "cppcheck" tool.
11 # Path to the root of the LUFA tree to scan
12 LUFA_ROOT_PATH = ../../
14 # Filenames or directories (including fragments) to exclude from the analysis
15 EXCLUDE_LIST = HostLoaderApp/ FATFs/ PetiteFATFs/ uip/
17 # Output message template for found warnings and errors
18 MESSAGE_TEMPLATE = "{file}({line}): {severity} ({id}): {message}"
20 # Checks to suppress so that generated warnings are discarded
21 SUPPRESS_WARNINGS = variableScope unusedFunction missingInclude
24 cppcheck -q --std=c99 --check-config $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
25 cppcheck -q -f --std=c99 --error-exitcode=1 --inline-suppr --enable=all $(SUPPRESS_WARNINGS:%=--suppress=%) --template $(MESSAGE_TEMPLATE) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)