mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Python: Ignore match-related inconsistencies
This commit is contained in:
@@ -11,6 +11,15 @@ private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
|
||||
or
|
||||
// TODO: when adding support for proper content, handle **kwargs passing better!
|
||||
n instanceof DataFlowPrivate::SynthDictSplatArgumentNode
|
||||
or
|
||||
// TODO: when adding support for proper content, handle unpacking tuples in match
|
||||
// cases better, such as
|
||||
//
|
||||
// match (NONSOURCE, SOURCE):
|
||||
// case (x, y): ...
|
||||
exists(DataFlow::Node m | m.asCfgNode().getNode() instanceof MatchCapturePattern |
|
||||
TypeTrackingInput::simpleLocalSmallStep*(m, n)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user