mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Add a comment for reasoning in why debug and trace are included and other variations are excluded
This commit is contained in:
@@ -42,7 +42,7 @@ class LoggerType extends RefType {
|
||||
predicate isSensitiveLoggingSink(DataFlow::Node sink) {
|
||||
exists(MethodAccess ma |
|
||||
ma.getMethod().getDeclaringType() instanceof LoggerType and
|
||||
(ma.getMethod().hasName("debug") or ma.getMethod().hasName("trace")) and
|
||||
(ma.getMethod().hasName("debug") or ma.getMethod().hasName("trace")) and //Check low priority log levels which are more likely to be real issues to reduce false positives
|
||||
sink.asExpr() = ma.getAnArgument()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user