Python: undo change to --max-import-depth

This is not necessary as long as `LibraryCall` only
includes unresolved calls.
This commit is contained in:
Rasmus Lerchedahl Petersen
2022-09-14 12:52:27 +02:00
parent 245baa51a3
commit 33b508d6e6
2 changed files with 5 additions and 4 deletions

View File

@@ -612,9 +612,10 @@ class SpecialCall extends DataFlowSourceCall, TSpecialCall {
/**
* A call to a summarized callable, a `LibraryCallable`.
*
* This is a potential call, really. It has an empty charpred, so any `CallNode` is allowed.
* It is here to stake out territory, as otherwise a call to `map` would be considered a `ClassCall`
* and not be available for a summary.
* We currently exclude all resolved calls. This means that a call to, say, `map`, which
* is a `ClassCall`, cannot currently be given a summary.
* We hope to lift this restriction in the future and include all potential calls to summaries
* in this class.
*/
class LibraryCall extends NormalCall {
LibraryCall() {

View File

@@ -1 +1 @@
semmle-extractor-options: --lang=3 --max-import-depth=0
semmle-extractor-options: --lang=3 --max-import-depth=1