Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add capability to group similar results

Đang mở
#684 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện truy vấn DTraceUnsafeIndex.ql trên cơ sở dữ liệu được liên kết, sau đó kiểm tra các điểm vào của chế độ xem kết quả và chế độ xem Problems của tiện ích mở rộng VS Code. Triển khai nút chuyển đổi nhóm được đề xuất và luôn nhóm các kết quả Problems được hiển thị theo các quy tắc về đường dẫn, cảnh báo và truy vấn khác; xác minh rằng các đường dẫn trùng lặp được gộp lại mà không làm mất kết quả đại diện.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
539
Fork
240
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
29

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/vscode-codeql

Tất cả issue của github/vscode-codeql

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.