mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
C#: Let the params test look in reference assemblies and update params to allow ParamsCollectionType.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.commons.Collections
|
||||
|
||||
where forall(Parameter p | p.isParams() and p.fromSource() | p.getType() instanceof ArrayType)
|
||||
where forall(Parameter p | p.isParams() | p.getType() instanceof ParamsCollectionType)
|
||||
select 1
|
||||
|
||||
Reference in New Issue
Block a user