mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
275 B
Plaintext
13 lines
275 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
|