mirror of
https://github.com/github/codeql.git
synced 2026-04-06 07:34:00 +02:00
Python: Update all metrics-dependant queries
The ones that no longer require points-to no longer import `LegacyPointsTo`. The ones that do use the specific `...MetricsWithPointsTo` classes that are applicable.
This commit is contained in:
@@ -18,6 +18,6 @@ from FunctionValue method
|
||||
where
|
||||
exists(ClassValue c |
|
||||
c.declaredAttribute("__del__") = method and
|
||||
method.getScope().(FunctionMetrics).getCyclomaticComplexity() > 3
|
||||
method.getScope().(FunctionMetricsWithPointsTo).getCyclomaticComplexity() > 3
|
||||
)
|
||||
select method, "Overly complex '__del__' method."
|
||||
|
||||
Reference in New Issue
Block a user