提交 b79149a5 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Add worker/scripts/flint++.sh linter

上级 1e3a7770
#!/usr/bin/env bash
unamestr=`uname`
current_dir=${PWD##*/}
if [ "${current_dir}" != "worker" ] ; then
......@@ -9,6 +10,13 @@ fi
if ! type "cppcheck" &> /dev/null; then
echo ">>> [ERROR] cppcheck command not found" >&2
if [[ "$unamestr" == "Linux" ]] ; then
echo ">>> [INFO] install the cppcheck Linux package and try again"
elif [[ "$unamestr" == "Darwin" ]] ; then
echo ">>> [INFO] install the Homebrew cppcheck package and try again"
fi
exit 1
fi
......
#!/usr/bin/env bash
current_dir=${PWD##*/}
if [ "${current_dir}" != "worker" ] ; then
echo ">>> [ERROR] $(basename $0) must be called from mediasoup/worker/ directory" >&2
exit 1
fi
if ! type "flint++" &> /dev/null; then
echo ">>> [ERROR] flint++ command not found" >&2
echo ">>> [INFO] get it at https://github.com/L2Program/FlintPlusPlus and try again"
exit 1
fi
echo ">>> [INFO] running flint++ in src/ folder ..."
cd src/
flint++ --recursive --verbose ./
cd ..
echo
echo ">>> [INFO] running flint++ in include/ folder ..."
cd include/
flint++ --recursive --verbose ./
cd ..
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论