mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java/C#: Add query for aiding the conversion of existing negative models.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @name Extract MaD negative summary model rows.
|
||||
* @description This extracts the Models as data negative summary model rows.
|
||||
* @id csharp/utils/modelconverter/generate-data-extensions-negative-summary
|
||||
*/
|
||||
|
||||
import csharp
|
||||
import semmle.code.csharp.dataflow.ExternalFlow
|
||||
|
||||
from string package, string type, string name, string signature, string provenance
|
||||
where
|
||||
negativeSummaryModel(package, type, name, signature, provenance) and
|
||||
provenance != "generated"
|
||||
select package, type, name, signature, provenance order by package, type, name, signature
|
||||
14
java/ql/src/utils/modelconverter/ExtractNegativeSummaries.ql
Normal file
14
java/ql/src/utils/modelconverter/ExtractNegativeSummaries.ql
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @name Extract MaD negative summary model rows.
|
||||
* @description This extracts the Models as data negative summary model rows.
|
||||
* @id java/utils/modelconverter/generate-data-extensions-negative-summary
|
||||
*/
|
||||
|
||||
import java
|
||||
import semmle.code.java.dataflow.ExternalFlow
|
||||
|
||||
from string package, string type, string name, string signature, string provenance
|
||||
where
|
||||
negativeSummaryModel(package, type, name, signature, provenance) and
|
||||
provenance != "generated"
|
||||
select package, type, name, signature, provenance order by package, type, name, signature
|
||||
Reference in New Issue
Block a user