Bugfix/cppcheck error code fixes (#244)
* Add flawfinder. Add error code for exit status. * fix errors found by cppcheck * fix initialization warning in unit test compile Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -222,10 +222,16 @@ lint:
|
||||
CPPCHECK_OPTIONS = --enable=warning,portability
|
||||
CPPCHECK_OPTIONS += --template=gcc
|
||||
CPPCHECK_OPTIONS += --suppress=selfAssignment
|
||||
CPPCHECK_OPTIONS += --suppress=integerOverflow
|
||||
CPPCHECK_OPTIONS += --error-exitcode=1
|
||||
.PHONY: cppcheck
|
||||
cppcheck:
|
||||
cppcheck $(CPPCHECK_OPTIONS) --quiet --force ./src/
|
||||
|
||||
.PHONY: flawfinder
|
||||
flawfinder:
|
||||
flawfinder --minlevel 5 --error-level=5 ./src/
|
||||
|
||||
IGNORE_WORDS = ba
|
||||
CODESPELL_OPTIONS = --write-changes --interactive 3 --enable-colors
|
||||
CODESPELL_OPTIONS += --ignore-words-list $(IGNORE_WORDS)
|
||||
|
||||
Reference in New Issue
Block a user