mirror of
https://github.com/github/codeql.git
synced 2026-03-06 07:36:47 +01:00
C#: Autoformat QL queries
This commit is contained in:
@@ -10,11 +10,15 @@
|
||||
* frameworks/asp.net
|
||||
* external/cwe/cwe-489
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.commons.Util
|
||||
|
||||
from MainMethod m
|
||||
where m.fromSource()
|
||||
and exists(UsingNamespaceDirective u | u.getFile() = m.getFile()
|
||||
and u.getImportedNamespace().hasQualifiedName("System.Web"))
|
||||
where
|
||||
m.fromSource() and
|
||||
exists(UsingNamespaceDirective u |
|
||||
u.getFile() = m.getFile() and
|
||||
u.getImportedNamespace().hasQualifiedName("System.Web")
|
||||
)
|
||||
select m, "Remove debug code if your ASP.NET application is in production."
|
||||
|
||||
Reference in New Issue
Block a user