For an abstract class in the CodeQL source code, how can I quickly find all the classes that extend this abstract class from the CodeQL library?
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 141
Mô tả
Dear CodeQL Team,
I hope this message finds you well. I have a question regarding efficiently identifying subclasses of an abstract class in the CodeQL source code. Specifically:
For an abstract class in the CodeQL source code, is there a way to quickly find all the classes that extend this abstract class within the CodeQL library?
For example, consider the following class:
```ql
module PathInjection {
abstract class Sanitizer extends DataFlow::Node { }
}
```
Its subclasses are distributed across multiple files. Using search tools, I would have to search for patterns like `extends .*Sanitizer` and `extends .*PathInjection::Sanitizer`, etc., which is very cumbersome.
Thank you in advance for your time and assistance!
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc xem xét mã nguồn và tài liệu của thư viện CodeQL liên quan đến lớp trừu tượng Sanitizer trong mô-đun PathInjection. Xác định xem thư viện hoặc các công cụ của thư viện có cung cấp cách liệt kê các lớp con trên nhiều tệp hay không, và ghi lại cách tiếp cận được hỗ trợ nhanh nhất; issue không nêu tệp hoặc bài kiểm thử cụ thể nào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- security
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100