mirror of
https://github.com/github/codeql.git
synced 2026-02-26 11:53:42 +01:00
11 lines
272 B
Plaintext
11 lines
272 B
Plaintext
/**
|
|
* @name Test for namespaces
|
|
*/
|
|
import csharp
|
|
|
|
from UsingNamespaceDirective u
|
|
where u.getFile().getBaseName() = "namespaces.cs"
|
|
and u.getImportedNamespace().hasQualifiedName("System.Collections.Generic")
|
|
and not exists(u.getParentNamespaceDeclaration())
|
|
select u
|