From 5e9d0e6dd393d9aff3ed7f8dc46824139448d0bb Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 12 Jul 2026 18:38:31 +0800 Subject: update(chore): add clang-tidy Signed-off-by: sakumisu <1203593632@qq.com> --- .github/workflows/cppcheck.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.github/workflows/cppcheck.yml') diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index 666afd27..9a6523cd 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -13,5 +13,12 @@ jobs: - name: cppcheck shell: bash run: | + set -o pipefail sudo apt install cppcheck - cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 --force . -i third_party/ -i class/template -i port/template/ + cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 --quiet --force . -i third_party/ -i class/template -i port/template/ -i tests/ --include=tests/hpmicro/inc/usb_config.h 2>&1 | tee cppcheck.log + - name: Upload cppcheck log + if: always() + uses: actions/upload-artifact@v4 + with: + name: cppcheck-log + path: cppcheck.log -- cgit v1.3.1