Skip to content

Commit 5c8ef28

Browse files
Add missing qldoc and revert accidentilly commited threat model change
1 parent bcb08bb commit 5c8ef28

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

python/ql/lib/semmle/python/frameworks/Lxml.qll

+12
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,17 @@ module Lxml {
322322
/** Gets a reference to the `Element` class. */
323323
API::Node classRef() { result = etreeRef().getMember(["Element", "_Element"]) }
324324

325+
/**
326+
* A source of instances of `lxml.etree.Element` instances, extend this class to model new instances.
327+
*
328+
* This can include instantiations of the class, return values from function
329+
* calls, or a special parameter that will be set when functions are called by an external
330+
* library.
331+
*
332+
* Use the predicate `Element::instance()` to get references to instances of `lxml.etree.ElementTree` instances.
333+
*/
325334
abstract class InstanceSource instanceof API::Node {
335+
/** Gets a textual representation of this element. */
326336
string toString() { result = super.toString() }
327337
}
328338

@@ -410,6 +420,7 @@ module Lxml {
410420

411421
/** Provides models for instances of the `lxml.etree.ElementTree` class. */
412422
module ElementTree {
423+
/** Gets a reference to the `ElementTree` class. */
413424
API::Node classRef() { result = etreeRef().getMember(["ElementTree", "_ElementTree"]) }
414425

415426
/**
@@ -422,6 +433,7 @@ module Lxml {
422433
* Use the predicate `ElementTree::instance()` to get references to instances of `lxml.etree.ElementTree` instances.
423434
*/
424435
abstract class InstanceSource instanceof API::Node {
436+
/** Gets a textual representation of this element. */
425437
string toString() { result = super.toString() }
426438
}
427439

shared/threat-models/ext/supported-threat-models.model.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ extensions:
44
extensible: threatModelConfiguration
55
data:
66
- ["default", true, -2147483648] # The "default" threat model is included by default
7-
- ["all", true, 1]

0 commit comments

Comments
 (0)