From 11f3591d840dcdb223714cf164ab8b0440901ec6 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Fri, 28 Oct 2022 14:42:59 +0200 Subject: [PATCH] add static check --- .drone.yml | 5 +++++ gateway/platformio.ini | 7 +++++++ libraries/RF24 | 1 - 3 files changed, 12 insertions(+), 1 deletion(-) delete mode 160000 libraries/RF24 diff --git a/.drone.yml b/.drone.yml index 293b48f..b24ff98 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,11 @@ platform: arch: arm steps: +- name: static check + commands: + - cd gateway + - pio check -e pro-mini + - name: native tests commands: - cd gateway diff --git a/gateway/platformio.ini b/gateway/platformio.ini index 7c9ead9..69c5ca1 100644 --- a/gateway/platformio.ini +++ b/gateway/platformio.ini @@ -8,6 +8,9 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html +[platformio] +default_envs = pro-mini + [env:pro-mini] platform = atmelavr board = miniatmega328 @@ -21,6 +24,10 @@ lib_deps = adafruit/DHT sensor library@1.3.10 build_flags = -D DHT_SENSOR=0 upload_port = /dev/ttyUSB0 +check_tool = cppcheck +check_flags = --enable=all +check_skip_packages = yes +check_severity = medium, high [env:native] platform = native diff --git a/libraries/RF24 b/libraries/RF24 deleted file mode 160000 index cb04b38..0000000 --- a/libraries/RF24 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cb04b381f9b68cf60cac7ecb18346fb3291a80a6