Skip to content

Commit 5f9e1c3

Browse files
geoffw0paldepind
andauthoredJan 16, 2025··
Apply suggestions from code review
Co-authored-by: Simon Friis Vindum <[email protected]>
1 parent bec01da commit 5f9e1c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎rust/ql/src/queries/summary/Stats.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ string getAQuerySinkKind(DataFlow::Node n) {
6464
/**
6565
* Gets a count of the total number of query sinks in the database.
6666
*/
67-
int getQuerySinksCount() { result = count(DataFlow::Node n | exists(getAQuerySinkKind(n)) | n) }
67+
int getQuerySinksCount() { result = count(DataFlow::Node n | exists(getAQuerySinkKind(n))) }

‎rust/ql/src/queries/summary/TaintReach.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ private module TaintReachConfig implements DataFlow::ConfigSig {
2020
private module TaintReachFlow = TaintTracking::Global<TaintReachConfig>;
2121

2222
/**
23-
* Gets the total number of dataflow nodes that taint reaches (from any source).
23+
* Gets the total number of data flow nodes that taint reaches (from any source).
2424
*/
2525
int getTaintedNodesCount() { result = count(DataFlow::Node n | TaintReachFlow::flowTo(n)) }
2626

2727
/**
28-
* Gets the proportion of dataflow nodes that taint reaches (from any source),
28+
* Gets the proportion of data flow nodes that taint reaches (from any source),
2929
* expressed as a count per million nodes.
3030
*/
3131
float getTaintReach() { result = (getTaintedNodesCount() * 1000000.0) / count(DataFlow::Node n) }

0 commit comments

Comments
 (0)
Please sign in to comment.