Skip to content

Commit 0999340

Browse files
authored
Python: Add explanatory QLDoc comment
1 parent 1decf23 commit 0999340

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/ql/src/semmle/python/dataflow/new/SensitiveDataSources.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ private module SensitiveDataModeling {
194194
not result.regexpMatch(notSensitiveRegexp())
195195
}
196196

197+
/**
198+
* Returns strings (primarily the names of various program entities) that may contain sensitive data
199+
* with the classification `classification`.
200+
*
201+
* This is a helper predicate, used to limit the number of regexp matches that have to be performed.
202+
*/
197203
pragma[nomagic]
198204
private string sensitiveString(SensitiveDataClassification classification) {
199205
result in [

0 commit comments

Comments
 (0)