Added cppcheck of BACnet source into pipeline (#171)
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user