Added cppcheck of BACnet source into pipeline (#171)

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2021-05-21 09:00:57 -05:00
committed by GitHub
parent b38d975f35
commit 4349e53203
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -10,6 +10,7 @@ before_install:
- sudo apt-get install -qq gcc-avr avr-libc binutils-avr
- sudo apt-get install -qq mingw-w64
- sudo apt-get install -qq libconfig-dev
- sudo apt-get install -qq cppcheck
compiler:
- gcc
@@ -61,6 +62,10 @@ jobs:
os: linux
compiler: clang
script: make clean lint
- stage: cppcheck
os: linux
compiler: gcc
script: make clean cppcheck
- stage: ports-arm
os: linux
before_script:
+8
View File
@@ -181,6 +181,14 @@ tidy:
lint:
scan-build --status-bugs -analyze-headers make -j2 clean server
CPPCHECK_OPTIONS = --enable=warning,portability
CPPCHECK_OPTIONS += --template=gcc
CPPCHECK_OPTIONS += --suppress=selfAssignment
.PHONY: cppcheck
cppcheck:
cppcheck $(CPPCHECK_OPTIONS) --quiet --force ./src/
.PHONY: clean
clean:
$(MAKE) -s -C src clean