mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Python: Fix problems with missing TAttributeContent
This commit is contained in:
@@ -614,7 +614,7 @@ newtype TContent =
|
||||
// instead we use a qltest to alert if we write a new summary in QL that uses an
|
||||
// attribute -- see
|
||||
// python/ql/test/experimental/dataflow/summaries-checks/missing-attribute-content.ql
|
||||
none() // to be filled out in next commit
|
||||
attr in ["re", "string", "pattern"]
|
||||
or
|
||||
//
|
||||
// 2) summaries in data-extension files
|
||||
|
||||
@@ -1,14 +1,2 @@
|
||||
| compiled re.Match | Argument[self].Attribute[pattern] | Attribute[pattern] |
|
||||
| compiled re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[pattern] |
|
||||
| compiled re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[re] |
|
||||
| compiled re.Match | ReturnValue.Attribute[string] | Attribute[string] |
|
||||
| compiled re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
|
||||
| re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[pattern] |
|
||||
| re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[re] |
|
||||
| re.Match | ReturnValue.Attribute[string] | Attribute[string] |
|
||||
| re.Match.expand | Argument[self].Attribute[string] | Attribute[string] |
|
||||
| re.Match.group | Argument[self].Attribute[string] | Attribute[string] |
|
||||
| re.Match.groupdict | Argument[self].Attribute[string] | Attribute[string] |
|
||||
| re.Match.groups | Argument[self].Attribute[string] | Attribute[string] |
|
||||
| re.Pattern | ReturnValue.Attribute[pattern] | Attribute[pattern] |
|
||||
| re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
| The attribute "pattern" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
|
||||
| The attribute "re" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
|
||||
| The attribute "string" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
|
||||
|
||||
Reference in New Issue
Block a user