Python: Add dataflow consistency checks to ORM tests

Luckily they passed :phew:
This commit is contained in:
Rasmus Wriedt Larsen
2022-02-18 14:29:13 +01:00
parent d7ff00e615
commit 092cfceb18
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
uniqueEnclosingCallable
uniqueType
uniqueNodeLocation
missingLocation
uniqueNodeToString
missingToString
parameterCallable
localFlowIsLocal
compatibleTypesReflexive
unreachableNodeCCtx
localCallNodes
postIsNotPre
postHasUniquePre
uniquePostUpdate
postIsInSameCallable
reverseRead
argHasPostUpdate
postWithInFlow

View File

@@ -0,0 +1,3 @@
import semmle.python.dataflow.new.internal.DataFlowImplConsistency::Consistency
// Needs to import Django modeling to get the extra data-flow steps enabled.
import semmle.python.Frameworks