mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Exclude logging sinks
Those sinks are too coarse grained to be exposed as sinks on any model.
This commit is contained in:
@@ -48,6 +48,7 @@ string captureSink(TargetAPI api) {
|
||||
config.hasFlow(src, sink) and
|
||||
sinkNode(sink, kind) and
|
||||
api = src.getEnclosingCallable() and
|
||||
not kind = "logging" and
|
||||
result = asSinkModel(api, asInputArgument(src), kind)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user