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?

Aperta
#20,125 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

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!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
security
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.