fix some cppcheck warnings
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Note: This is a prototype for how we could add static code analysis to the CI.
|
||||
|
||||
set -e
|
||||
|
||||
VERSION=`bin/buildinfo.py long`
|
||||
|
||||
# The shell vars the build tool expects to find
|
||||
export APP_VERSION=$VERSION
|
||||
|
||||
# only check high and medium in our source
|
||||
# TODO: only doing tbeam (to start; add all/more later)
|
||||
pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" -e tbeam --skip-packages --severity=medium --severity=high --pattern="src/"
|
||||
return_code=$?
|
||||
|
||||
# TODO: not sure why return_code is 0
|
||||
echo "return_code:${return_code}"
|
||||
Reference in New Issue
Block a user