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

Add capability to group similar results

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript, vscode
领域
devtools

调研方向

针对链接的数据库复现 DTraceUnsafeIndex.ql 查询,然后检查 VS Code 扩展的结果视图和 Problems 视图入口点。实现建议的分组切换,并始终根据路径、警报和其他查询规则对显示的 Problems 结果进行分组;验证重复路径会合并,同时不会丢失代表性结果。

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

描述

enhancement VSCode

This query https://github.com/github/securitylab/blob/main/CodeQL_Queries/cpp/XNU_DTrace_CVE-2017-13782/DTraceUnsafeIndex.ql when run on the database linked here https://github.com/github/securitylab/tree/main/CodeQL_Queries/cpp/XNU_DTrace_CVE-2017-13782 will produce results like the following:

Banners_and_Alerts_and__Extension_Development_Host__-_dtrace_c_—_vscode-codeql-starter__Workspace_

You can see that many of the paths are duplicates. It's likely that in QL4E, the results were grouped together based on the comment in the ql file:

This query has 16 results. The 16th result is the vulnerability: dtrace_isa.c:817

The suggestion is the following:

  1. Add a toggle to group similar results in the results view. Similar results are defined by:
    • For Path queries
      • message is the same
      • All path elements are the same ast node
    • For alerts queries
      • message is the same
      • alert node is the same
    • For other query types
      • All elements are equal
  2. For the "Display in problems view", always group similar results. The calculation of what is similar would be slightly different since we only show the final element of a path query.
主要语言
TypeScript
星标
539
派生
240
平均合并
2 天 18 小时
30 天内合并 PR
37

贡献指南

打开贡献指南

从这里开始

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

github/vscode-codeql 的其他 Issue

查看 github/vscode-codeql 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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