RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.55k stars 5.03k forks source link

[CI][cppcheck] 需要根据ignore_format 过滤掉不需要扫描的文件夹 #7458

Closed mysterywolf closed 1 year ago

mysterywolf commented 1 year ago
supperthomas commented 1 year ago

https://github.com/RT-Thread/rt-thread/blob/master/.github/workflows/static_code_analysis.yml

添加对.ignore_format.yml 路径检查,如果在ignore路径中,就不去启用静态检查

supperthomas commented 1 year ago

遍历一下ignore_format.yml文件找到所有需要忽略的文件夹,搞个大数组,然后过滤~

supperthomas commented 1 year ago

比如: https://github.com/RT-Thread/rt-thread/blob/master/bsp/bouffalo_lab/libraries/bl_mcu_sdk/.ignore_format.yml

dir_path:

supperthomas commented 1 year ago

参考一下 https://github.com/RT-Thread/rt-thread/blob/master/tools/file_check.py