mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Python: Exclude synth preupdate nodes from tt-consistency
... and that should be it 👍 (so that's why I'm allowing the tests to
run on all data-flow nodes again)
This commit is contained in:
@@ -5,9 +5,9 @@ private import semmle.python.dataflow.new.internal.TypeTrackingImpl
|
||||
|
||||
private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
|
||||
predicate unreachableNodeExclude(DataFlow::Node n) {
|
||||
not exists(n.getLocation().getFile().getRelativePath())
|
||||
or
|
||||
n instanceof DataFlowPrivate::SyntheticPostUpdateNode
|
||||
or
|
||||
n instanceof DataFlowPrivate::SyntheticPreUpdateNode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
unreachableNode
|
||||
| attribute_tests.py:159:12:159:21 | [pre] ControlFlowNode for MyClass2() | Unreachable node in step of kind call. |
|
||||
Reference in New Issue
Block a user