Merge branch 'main' into tausbn/python-add-support-for-python-3.12-type-syntax

This commit is contained in:
Taus
2023-11-16 15:25:06 +00:00
222 changed files with 842 additions and 464 deletions

View File

@@ -5,6 +5,7 @@
* database. This query counts the lines of code, excluding whitespace or comments.
* @kind metric
* @tags summary
* telemetry
* @id py/summary/lines-of-code
*/

View File

@@ -8,4 +8,4 @@
| 38 | ControlFlowNode for ExceptStmt | builtin-class AttributeError |
| 40 | ControlFlowNode for ExceptStmt | builtin-class IndexError |
| 42 | ControlFlowNode for ExceptStmt | builtin-class KeyError |
| 57 | ControlFlowNode for ExceptStmt | builtin-class IOError |
| 57 | ControlFlowNode for ExceptStmt | builtin-class IOError |

View File

@@ -12,4 +12,4 @@
| 35 | ControlFlowNode for Attribute | builtin-class AttributeError |
| 37 | ControlFlowNode for Raise | builtin-class Exception |
| 53 | ControlFlowNode for Attribute() | builtin-class IOError |
| 54 | ControlFlowNode for Attribute() | builtin-class IOError |
| 54 | ControlFlowNode for Attribute() | builtin-class IOError |

View File

@@ -3,4 +3,4 @@
| 36 | ControlFlowNode for a() |
| 51 | ControlFlowNode for open() |
| 56 | ControlFlowNode for Attribute() |
| 58 | ControlFlowNode for Attribute() |
| 58 | ControlFlowNode for Attribute() |

View File

@@ -7,4 +7,4 @@
| 36 | class DerivedFromBuiltin | pop |
| 36 | class DerivedFromBuiltin | remove |
| 36 | class DerivedFromBuiltin | reverse |
| 36 | class DerivedFromBuiltin | sort |
| 36 | class DerivedFromBuiltin | sort |

View File

@@ -12,4 +12,4 @@
| Module package.helper | 2 | ImportExpr | 0 | bottom | absolute | assistant |
| Module package.helper | 3 | ImportExpr | 0 | top | absolute | sys |
| Module package.helper | 10 | ImportExpr | 1 | bottom | relative | package |
| Module test_star | 1 | ImportExpr | -1 | bottom | absolute | test_package |
| Module test_star | 1 | ImportExpr | -1 | bottom | absolute | test_package |

View File

@@ -54,4 +54,4 @@
| Module test_star | p | str b'p' |
| Module test_star | q | str b'q' |
| Module test_star | r | str b'r' |
| Module test_star | sys | Module sys |
| Module test_star | sys | Module sys |

View File

@@ -39,4 +39,4 @@
| Module test_star | p |
| Module test_star | q |
| Module test_star | r |
| Module test_star | sys |
| Module test_star | sys |

View File

@@ -5,4 +5,4 @@
| Module test_package.module2 | test_package.module2 |
| Module test_package.module3 | test_package.module3 |
| Module test_package.module4 | test_package.module4 |
| Module test_star | test_star |
| Module test_star | test_star |

View File

@@ -4,4 +4,4 @@
| builtin-class type | __dict__ | Property __dict__ | method-wrapper __get__ | method-wrapper __set__ | method-wrapper __delete__ |
| builtin-class type | __doc__ | Property __doc__ | method-wrapper __get__ | method-wrapper __set__ | method-wrapper __delete__ |
| builtin-class type | __module__ | Property __module__ | method-wrapper __get__ | method-wrapper __set__ | method-wrapper __delete__ |
| builtin-class type | __name__ | Property __name__ | method-wrapper __get__ | method-wrapper __set__ | method-wrapper __delete__ |
| builtin-class type | __name__ | Property __name__ | method-wrapper __get__ | method-wrapper __set__ | method-wrapper __delete__ |

View File

@@ -8,4 +8,4 @@
| 38 | ControlFlowNode for ExceptStmt | builtin-class AttributeError |
| 40 | ControlFlowNode for ExceptStmt | builtin-class IndexError |
| 42 | ControlFlowNode for ExceptStmt | builtin-class KeyError |
| 57 | ControlFlowNode for ExceptStmt | builtin-class OSError |
| 57 | ControlFlowNode for ExceptStmt | builtin-class OSError |

View File

@@ -12,4 +12,4 @@
| 35 | ControlFlowNode for Attribute | builtin-class AttributeError |
| 37 | ControlFlowNode for Raise | builtin-class Exception |
| 53 | ControlFlowNode for Attribute() | builtin-class OSError |
| 54 | ControlFlowNode for Attribute() | builtin-class OSError |
| 54 | ControlFlowNode for Attribute() | builtin-class OSError |

View File

@@ -3,4 +3,4 @@
| 36 | ControlFlowNode for a() |
| 51 | ControlFlowNode for open() |
| 56 | ControlFlowNode for Attribute() |
| 58 | ControlFlowNode for Attribute() |
| 58 | ControlFlowNode for Attribute() |

View File

@@ -1,2 +1,2 @@
| 28 |
| 42 |
| 42 |

View File

@@ -9,4 +9,4 @@
| 3 | class DerivedFromBuiltin | pop | Builtin-method pop |
| 3 | class DerivedFromBuiltin | remove | Builtin-method remove |
| 3 | class DerivedFromBuiltin | reverse | Builtin-method reverse |
| 3 | class DerivedFromBuiltin | sort | Builtin-method sort |
| 3 | class DerivedFromBuiltin | sort | Builtin-method sort |

View File

@@ -9,4 +9,4 @@
| 3 | class DerivedFromBuiltin | pop |
| 3 | class DerivedFromBuiltin | remove |
| 3 | class DerivedFromBuiltin | reverse |
| 3 | class DerivedFromBuiltin | sort |
| 3 | class DerivedFromBuiltin | sort |

View File

@@ -1 +1 @@
| ClassExpr | Meta |
| ClassExpr | Meta |

View File

@@ -1,2 +1,2 @@
| class HasMeta | class Meta |
| class Meta | builtin-class type |
| class Meta | builtin-class type |

View File

@@ -57,4 +57,4 @@
| Module test_star | p | str u'p' |
| Module test_star | q | str u'q' |
| Module test_star | r | str u'r' |
| Module test_star | sys | Module sys |
| Module test_star | sys | Module sys |

View File

@@ -41,4 +41,4 @@
| Module test_star | p |
| Module test_star | q |
| Module test_star | r |
| Module test_star | sys |
| Module test_star | sys |

View File

@@ -6,4 +6,4 @@
| Module test_package.module3 | test_package.module3 |
| Module test_package.module4 | test_package.module4 |
| Module test_package.module5 | test_package.module5 |
| Module test_star | test_star |
| Module test_star | test_star |

View File

@@ -21,4 +21,4 @@
| 112 | multi_return | builtin-class int |
| 118 | do_something | builtin-class int |
| 123 | with_flow | builtin-class int |
| 128 | return_default | builtin-class tuple |
| 128 | return_default | builtin-class tuple |

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1 +0,0 @@
| pointsto_regressions.py:15:18:15:21 | ControlFlowNode for self | pointsto_regressions.py:19:9:19:12 | ControlFlowNode for self |

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,7 +1,7 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures
isSanitizer
| test.py:21:39:21:39 | ControlFlowNode for s |
| test.py:34:39:34:39 | ControlFlowNode for s |

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,5 +1,5 @@
failures
testFailures
failures
debug_callableNotUnique
pointsTo_found_typeTracker_notFound
typeTracker_found_pointsTo_notFound

View File

@@ -1,5 +1,5 @@
failures
testFailures
failures
debug_callableNotUnique
pointsTo_found_typeTracker_notFound
typeTracker_found_pointsTo_notFound

View File

@@ -1,5 +1,5 @@
failures
testFailures
failures
debug_callableNotUnique
pointsTo_found_typeTracker_notFound
| code/class_attr_assign.py:10:9:10:27 | ControlFlowNode for Attribute() | my_func |

View File

@@ -1,4 +1,3 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
| taint_test.py:48:9:48:29 | taint_test.py:48 | ERROR, you should add `SPURIOUS:` to this annotation | should_not_be_tainted |
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
@@ -6,3 +5,4 @@ untaintedArgumentToEnsureTaintedNotMarkedAsMissing
| taint_test.py:37:24:37:40 | taint_test.py:37 | ERROR, you should add `# $ MISSING: tainted` annotation | should_be_tainted |
testFailures
| taint_test.py:41:20:41:21 | ts | Fixed missing result:tainted= |
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -4,4 +4,4 @@
| ControlFlowNode for Subscript | ControlFlowNode for Subscript | 23 |
| ControlFlowNode for v | ControlFlowNode for v | 28 |
| ControlFlowNode for x | ControlFlowNode for x | 7 |
| ControlFlowNode for x | ControlFlowNode for x | 21 |
| ControlFlowNode for x | ControlFlowNode for x | 21 |

View File

@@ -1,3 +1,3 @@
| ControlFlowNode for v | 28 |
| ControlFlowNode for x | 7 |
| ControlFlowNode for x | 21 |
| ControlFlowNode for x | 21 |

View File

@@ -3,4 +3,4 @@
| 3 | ControlFlowNode for Compare | e | f | < |
| 4 | ControlFlowNode for Compare | g | h | >= |
| 5 | ControlFlowNode for Compare | i | j | <= |
| 6 | ControlFlowNode for Compare | k | l | != |
| 6 | ControlFlowNode for Compare | k | l | != |

View File

@@ -6,4 +6,4 @@
| ec |
| ed |
| ee |
| ef |
| ef |

View File

@@ -6,4 +6,4 @@
| Function normal_args | 1 |
| Function special_args | 1 |
| Function try_except | 4 |
| Function try_finally | 2 |
| Function try_finally | 2 |

View File

@@ -16,4 +16,4 @@
| try_body1 |
| try_body2 |
| try_body3 |
| try_body4 |
| try_body4 |

View File

@@ -3,4 +3,4 @@
| 10 | ControlFlowNode for u3 | u3 | delete |
| 10 | ControlFlowNode for use | use | other |
| 18 | ControlFlowNode for u2 | u2 | delete |
| 21 | ControlFlowNode for u3 | u3 | delete |
| 21 | ControlFlowNode for u3 | u3 | delete |

View File

@@ -1,4 +1,4 @@
failures
testFailures
| test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |
| test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |
failures

View File

@@ -1,2 +1,2 @@
| 9 | Function meth |
| 14 | Function meth |
| 14 | Function meth |

View File

@@ -34,4 +34,4 @@
| class Wrong2 | class Base |
| class Wrong2 | class Derived1 |
| class Wrong2 | class Derived2 |
| class Wrong2 | class Derived3 |
| class Wrong2 | class Derived3 |

View File

@@ -76,4 +76,4 @@
| 136 | x | global |
| 140 | object | global |
| 142 | x | global |
| 143 | x | local |
| 143 | x | local |

View File

@@ -1,4 +1,4 @@
| 10 | a1 | defined |
| 18 | a2 | defined |
| 21 | a0 | |
| 25 | a1 | guarded |
| 25 | a1 | guarded |

View File

@@ -29,4 +29,4 @@
| 103 | class Sub | float | builtin-class float |
| 103 | class Sub | h | Builtin-function hash |
| 103 | class Sub | int | builtin-class int |
| 103 | class Sub | l | Builtin-function len |
| 103 | class Sub | l | Builtin-function len |

View File

@@ -16,4 +16,4 @@
| 96 | class Oddities | float | builtin-class float |
| 96 | class Oddities | h | Builtin-function hash |
| 96 | class Oddities | int | builtin-class int |
| 96 | class Oddities | l | Builtin-function len |
| 96 | class Oddities | l | Builtin-function len |

View File

@@ -19,4 +19,4 @@
| 96 | class Oddities | float |
| 96 | class Oddities | h |
| 96 | class Oddities | int |
| 96 | class Oddities | l |
| 96 | class Oddities | l |

View File

@@ -34,4 +34,4 @@
| 103 | class Sub | float |
| 103 | class Sub | h |
| 103 | class Sub | int |
| 103 | class Sub | l |
| 103 | class Sub | l |

View File

@@ -1,2 +1,2 @@
| 92 | class Unhashable | NoneType None |
| 103 | class Sub | NoneType None |
| 103 | class Sub | NoneType None |

View File

@@ -1,4 +1,4 @@
| 15 | 16 | Commented out code |
| 21 | 72 | Commented out code |
| 78 | 85 | Commented out code |
| 94 | 97 | Commented out code |
| 94 | 97 | Commented out code |

View File

@@ -1,3 +1,3 @@
| 15 | 16 | Commented out code |
| 21 | 72 | Commented out code |
| 78 | 85 | Commented out code |
| 78 | 85 | Commented out code |

View File

@@ -43,4 +43,4 @@
| 94 | Comment # def f(): |
| 95 | Comment # call() |
| 96 | Comment # x.y = z |
| 97 | Comment # return x |
| 97 | Comment # return x |

View File

@@ -39,4 +39,4 @@
| 82 | Comment #except Exception: |
| 83 | Comment # pass |
| 84 | Comment #except: |
| 85 | Comment # pass |
| 85 | Comment # pass |

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -9,4 +9,4 @@
| class InnerNotException1 | no |
| class InnerNotException2 | no |
| class NotException1 | no |
| class NotException2 | no |
| class NotException2 | no |

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,4 +1,4 @@
failures
argumentToEnsureNotTaintedNotMarkedAsSpurious
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -1,3 +1,3 @@
missingAnnotationOnSink
failures
testFailures
failures

Some files were not shown because too many files have changed in this diff Show More