mirror of
https://github.com/github/codeql.git
synced 2026-08-04 01:13:00 +02:00
21 lines
505 B
Plaintext
21 lines
505 B
Plaintext
/**
|
|
* @name Calls to unmanaged code
|
|
* @description Finds calls to "extern" methods (which are implemented by unmanaged code).
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @precision high
|
|
* @id cs/call-to-unmanaged-code
|
|
* @tags quality
|
|
* reliability
|
|
* correctness
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Class c, Method m, MethodCall call
|
|
where
|
|
m.isExtern() and
|
|
m.getDeclaringType() = c and
|
|
call.getTarget() = m
|
|
select call, "Replace this call with a call to managed code if possible."
|