Skip to content

Commit 8156fa9

Browse files
yoffRasmusWL
andauthored
Apply naming suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 12dab88 commit 8156fa9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

python/ql/lib/semmle/python/Concepts.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,13 @@ module SqlExecution {
378378
}
379379
}
380380

381-
/** Provides a class for modeling NoSql execution APIs. */
381+
/** Provides a class for modeling NoSQL execution APIs. */
382382
module NoSqlExecution {
383383
/**
384384
* A data-flow node that executes NoSQL queries.
385385
*
386386
* Extend this class to model new APIs. If you want to refine existing API models,
387-
* extend `NoSQLQuery` instead.
387+
* extend `NoSqlExecution` instead.
388388
*/
389389
abstract class Range extends DataFlow::Node {
390390
/** Gets the argument that specifies the NoSql query to be executed. */
@@ -402,7 +402,7 @@ module NoSqlExecution {
402402
* A data-flow node that executes NoSQL queries.
403403
*
404404
* Extend this class to refine existing API models. If you want to model new APIs,
405-
* extend `NoSQLQuery::Range` instead.
405+
* extend `NoSqlExecution::Range` instead.
406406
*/
407407
class NoSqlExecution extends DataFlow::Node instanceof NoSqlExecution::Range {
408408
/** Gets the argument that specifies the NoSql query to be executed. */

python/ql/lib/semmle/python/security/dataflow/NoSQLInjectionQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ private import NoSQLInjectionCustomizations::NoSqlInjection as C
1111
/**
1212
* A taint-tracking configuration for detecting NoSQL injection vulnerabilities.
1313
*/
14-
module NoSQLInjectionConfig implements DataFlow::StateConfigSig {
14+
module NoSqlInjectionConfig implements DataFlow::StateConfigSig {
1515
class FlowState = C::FlowState;
1616

1717
predicate isSource(DataFlow::Node source, FlowState state) {
@@ -57,4 +57,4 @@ module NoSQLInjectionConfig implements DataFlow::StateConfigSig {
5757
}
5858
}
5959

60-
module Flow = TaintTracking::GlobalWithState<NoSQLInjectionConfig>;
60+
module NoSqlInjectionFlow = TaintTracking::GlobalWithState<NoSqlInjectionConfig>;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import python
22
import experimental.dataflow.TestUtil.DataflowQueryTest
33
import semmle.python.security.dataflow.NoSQLInjectionQuery
4-
import FromTaintTrackingStateConfig<NoSQLInjectionConfig>
4+
import FromTaintTrackingStateConfig<NoSqlInjectionConfig>

0 commit comments

Comments
 (0)