Skip to content

Commit 4e74003

Browse files
committed
Polish Concepts documentation
1 parent 7e6032f commit 4e74003

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

python/ql/src/experimental/semmle/python/Concepts.qll

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,30 +147,60 @@ class LDAPEscape extends DataFlow::Node {
147147
DataFlow::Node getAnInput() { result = range.getAnInput() }
148148
}
149149

150+
/** Provides a class for modeling NoSQL execution APIs. */
150151
module NoSQLQuery {
152+
/**
153+
* A data-flow node that executes NoSQL queries.
154+
*
155+
* Extend this class to model new APIs. If you want to refine existing API models,
156+
* extend `NoSQLQuery` instead.
157+
*/
151158
abstract class Range extends DataFlow::Node {
159+
/** Gets the argument that specifies the NoSQL query to be executed. */
152160
abstract DataFlow::Node getQuery();
153161
}
154162
}
155163

164+
/**
165+
* A data-flow node that executes NoSQL queries.
166+
*
167+
* Extend this class to refine existing API models. If you want to model new APIs,
168+
* extend `NoSQLQuery::Range` instead.
169+
*/
156170
class NoSQLQuery extends DataFlow::Node {
157171
NoSQLQuery::Range range;
158172

159173
NoSQLQuery() { this = range }
160174

175+
/** Gets the argument that specifies the NoSQL query to be executed. */
161176
DataFlow::Node getQuery() { result = range.getQuery() }
162177
}
163178

179+
/** Provides classes for modeling NoSQL sanitization-related APIs. */
164180
module NoSQLSanitizer {
181+
/**
182+
* A data-flow node that collects functions sanitizing NoSQL queries.
183+
*
184+
* Extend this class to model new APIs. If you want to refine existing API models,
185+
* extend `NoSQLSanitizer` instead.
186+
*/
165187
abstract class Range extends DataFlow::Node {
188+
/** Gets the argument that specifies the NoSQL query to be sanitized. */
166189
abstract DataFlow::Node getAnInput();
167190
}
168191
}
169192

193+
/**
194+
* A data-flow node that collects functions sanitizing NoSQL queries.
195+
*
196+
* Extend this class to model new APIs. If you want to refine existing API models,
197+
* extend `NoSQLSanitizer::Range` instead.
198+
*/
170199
class NoSQLSanitizer extends DataFlow::Node {
171200
NoSQLSanitizer::Range range;
172201

173202
NoSQLSanitizer() { this = range }
174203

204+
/** Gets the argument that specifies the NoSQL query to be sanitized. */
175205
DataFlow::Node getAnInput() { result = range.getAnInput() }
176206
}

0 commit comments

Comments
 (0)