mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Python: Adjust subclass finder to no ESSA nodes
But the new test results looks very strange indeed!
This commit is contained in:
@@ -199,11 +199,7 @@ module NotExposed {
|
||||
relevantClass = newOrExistingModeling(spec).getASubclass*() and
|
||||
ImportResolution::module_export(mod, relevantName, def) and
|
||||
value = relevantClass.getAValueReachableFromSource().asCfgNode() and
|
||||
(
|
||||
value = def.asVar().getDefinition().(AssignmentDefinition).getValue()
|
||||
or
|
||||
value = def.asCfgNode()
|
||||
)
|
||||
value = def.asCfgNode()
|
||||
// value could be a ClassExpr if a new class is defined, or a Name if defining an alias
|
||||
) and
|
||||
(
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[ViewAliasInExcept] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[ViewAliasInTry] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[__name__] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[__package__] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[clash2] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[clash3] |
|
||||
| Django.Views.View~Subclass | find_subclass_test | Member[clash] |
|
||||
@@ -9,6 +13,8 @@
|
||||
| flask.View~Subclass | find_subclass_test | Member[ViewAlias] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[ViewAlias_no_use] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[View] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[__name__] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[__package__] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[clash2] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[clash3] |
|
||||
| flask.View~Subclass | find_subclass_test | Member[clash] |
|
||||
|
||||
Reference in New Issue
Block a user