Skip to content

FIX: 修复CI静态分析误通过、API缺陷及文档错误#52

Merged
530china merged 1 commit into
masterfrom
develop
Mar 13, 2026
Merged

FIX: 修复CI静态分析误通过、API缺陷及文档错误#52
530china merged 1 commit into
masterfrom
develop

Conversation

@530china

Copy link
Copy Markdown
Owner

What:

  1. stable-ci.yml 中 cppcheck 的 || echo 吞掉了非零退出码, 导致存在 error/warning 级别问题时 CI 仍显示通过;
  2. bits_btn_register_result_filter_callback(NULL) 无法清除回调, 移除多余的 NULL 判断使传 NULL 能正确禁用过滤回调;
  3. c11_buffer_ops 缺少 static 修饰,不应暴露到外部链接;
  4. 示例代码缺少 #include <stdarg.h>(va_list/va_start/va_end 依赖);
  5. 修正 api.md 缺失的闭合代码围栏、testing.md 和 test/README.md 中与实际 test_config.h 不一致的宏名、ButtonSimulator.md 中 不存在的文件列表;
  6. test_triple_click_event 实际测试双击,重命名为 test_fast_double_click_event;
  7. 两处测试用例在条件不满足时用 printf+return 静默通过, 改为 TEST_IGNORE_MESSAGE 使报告正确显示 Ignored

TEST: 48 Tests 0 Failures 0 Ignored

What:
1. stable-ci.yml 中 cppcheck 的 || echo 吞掉了非零退出码,
   导致存在 error/warning 级别问题时 CI 仍显示通过;
2. bits_btn_register_result_filter_callback(NULL) 无法清除回调,
   移除多余的 NULL 判断使传 NULL 能正确禁用过滤回调;
3. c11_buffer_ops 缺少 static 修饰,不应暴露到外部链接;
4. 示例代码缺少 #include <stdarg.h>(va_list/va_start/va_end 依赖);
5. 修正 api.md 缺失的闭合代码围栏、testing.md 和 test/README.md
   中与实际 test_config.h 不一致的宏名、ButtonSimulator.md 中
   不存在的文件列表;
6. test_triple_click_event 实际测试双击,重命名为 test_fast_double_click_event;
7. 两处测试用例在条件不满足时用 printf+return 静默通过,
   改为 TEST_IGNORE_MESSAGE 使报告正确显示 Ignored

TEST: 48 Tests 0 Failures 0 Ignored
@530china 530china merged commit a6914fd into master Mar 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant