Files
codeql/csharp/ql/src/Bad Practices/UnmanagedCodeCheck.ql
2019-01-02 12:59:07 +01:00

19 lines
385 B
Plaintext

/**
* @name Unmanaged code
* @description Finds "extern" methods, implemented by unmanaged code.
* @kind problem
* @problem.severity recommendation
* @precision high
* @id cs/unmanaged-code
* @tags reliability
* maintainability
*/
import csharp
from Class c, Method m
where
m.isExtern() and
m.getDeclaringType() = c
select m, "Minimise the use of unmanaged code."