C#: Autoformat QL queries

This commit is contained in:
Tom Hvitved
2019-01-02 12:59:07 +01:00
parent 4348de3120
commit daa45322b1
277 changed files with 2462 additions and 2301 deletions

View File

@@ -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."