Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Optional tools are fetched from master, and cmake/ikos.cmake is included nowhere

未关闭
#174 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
69/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
cmake, cpp, shell

调研方向

Read the three named CMake modules, scripts/release/check-pinned-dependencies.sh, and the relevant section of CMakeLists.txt. Pin flawfinder and TscanCode, update the script exclusions, and remove the unused ikos module and commented include. Run check-pinned-dependencies.sh, ctest, and configure and build with both options enabled to verify the acceptance criteria.

由索引模型根据 Issue 内容生成。

描述

build severity/minor

Three build modules fetch GIT_TAG master:

  • cmake/flawfinder.cmake:7 (-DENABLE_FLAWFINDER=ON);
  • cmake/tscancode.cmake:7 (-DENABLE_TSCANCODE=ON);
  • cmake/ikos.cmake:55, which nothing includes: its include is commented out in CMakeLists.txt:144, and ikos is found through PATH.

scripts/release/check-pinned-dependencies.sh skips these three files because no release ships those tools. As a result, two builds of the same commit with the same option can get different versions of flawfinder or TscanCode, and cmake/ikos.cmake is dead code.

To do

  • Pin flawfinder and TscanCode to a tag or a commit, like the other dependencies.
  • Remove them from the exclusion list of check-pinned-dependencies.sh.
  • Delete cmake/ikos.cmake and the commented include.

Acceptance

  • check-pinned-dependencies.sh checks every file in cmake/, and ctest passes.
  • A build with -DENABLE_FLAWFINDER=ON -DENABLE_TSCANCODE=ON still configures and builds.

From the technical debt register (docs/quality/technical-debt.md, D7).

主要语言
C++
星标
5
派生
4
平均合并
1 小时 9 分钟
30 天内合并 PR
81

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CoreTrace/coretrace 的其他 Issue

查看 CoreTrace/coretrace 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。