Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6e9b35

Browse files
committed
Python: Add qldocs
1 parent 821b0c9 commit d6e9b35

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • python/ql/src/experimental/semmle/python/frameworks

python/ql/src/experimental/semmle/python/frameworks/Stdlib.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,10 @@ private class ExecStatement extends CodeExecution::Range {
739739
override DataFlow::Node getCode() { result = this }
740740
}
741741

742+
/**
743+
* A call to the builtin `open` function.
744+
* See https://docs.python.org/3/library/functions.html#open
745+
*/
742746
private class OpenCall extends FileSystemAccess::Range, DataFlow::CfgNode {
743747
override CallNode node;
744748

@@ -749,6 +753,10 @@ private class OpenCall extends FileSystemAccess::Range, DataFlow::CfgNode {
749753
}
750754
}
751755

756+
/**
757+
* A call to the `startswith` method on a string.
758+
* See https://docs.python.org/3.9/library/stdtypes.html#str.startswith
759+
*/
752760
private class StartswithCall extends Path::SafeAccessCheck::Range {
753761
StartswithCall() { this.(CallNode).getFunction().(AttrNode).getName() = "startswith" }
754762

0 commit comments

Comments
 (0)