cppcheck启用style检查,抑制HAL回调噪音,更新使用说明

This commit is contained in:
2026-09-01 13:37:54 +08:00
parent ed81a97442
commit 3fdfeff1fd
2 changed files with 45 additions and 14 deletions
+5 -1
View File
@@ -41,10 +41,14 @@ repos:
- id: cppcheck
name: cppcheck
entry: cppcheck
args: [--enable=warning,performance,portability, --error-exitcode=1,
args: [--enable=warning,performance,portability,style, --error-exitcode=1,
--std=c99, --quiet,
--suppress=missingIncludeSystem, --suppress=missingInclude,
--suppress=invalidPrintfArgType_sint, --suppress=invalidPrintfArgType_uint,
--suppress=unusedFunction, --suppress=unusedStructMember,
--suppress=noExplicitConstructor, --suppress=useStlAlgorithm,
--suppress=constParameterPointer, --suppress=constParameterCallback,
--suppress=constVariablePointer,
-I Inc -I App -I Drivers/BSP,
-I Drivers/STM32F4xx_HAL_Driver/Inc -I Drivers/CMSIS/Include,
-I Middlewares/Third_Party/FreeRTOS/Source/include]