github / github/codeql

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?

未關閉
#20,125 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

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!

貢獻指南

開啟貢獻指南

研究方向

Start by reviewing the CodeQL library source and documentation around the abstract Sanitizer class in the PathInjection module. Determine whether the library or its tooling provides a way to enumerate subclasses across files, and document the quickest supported approach; no specific file or test is named in the issue.

由索引模型根據 Issue 內容生成。

評估

領域
security
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。