зеркало из https://github.com/github/codeql.git
Set up automated coverage reports for Go
Copied from https://github.com/github/codeql/pull/6148
This commit is contained in:
Родитель
a31f946d6f
Коммит
06a600c7fb
|
@ -0,0 +1 @@
|
|||
CWE,Sink identifier,Label
|
|
|
@ -0,0 +1 @@
|
|||
Framework name,URL,Package prefixes
|
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* @name Framework coverage
|
||||
* @description The number of API endpoints covered by MaD models sorted by
|
||||
* package and source-, sink-, and summary-kind.
|
||||
* @kind table
|
||||
* @id go/meta/framework-coverage
|
||||
*/
|
||||
|
||||
import go
|
||||
import semmle.go.dataflow.ExternalFlow
|
||||
|
||||
from string package, int pkgs, string kind, string part, int n
|
||||
where modelCoverage(package, pkgs, kind, part, n)
|
||||
select package, pkgs, kind, part, n
|
|
@ -114,7 +114,9 @@ configs = [
|
|||
utils.LanguageConfig(
|
||||
"java", "Java", ".java", query_prefix + "java/ql/src/meta/frameworks/Coverage.ql"),
|
||||
utils.LanguageConfig(
|
||||
"csharp", "C#", ".cs", query_prefix + "csharp/ql/src/meta/frameworks/Coverage.ql")
|
||||
"csharp", "C#", ".cs", query_prefix + "csharp/ql/src/meta/frameworks/Coverage.ql"),
|
||||
utils.LanguageConfig(
|
||||
"go", "Go", ".go", query_prefix + "go/ql/src/meta/frameworks/Coverage.ql")
|
||||
]
|
||||
|
||||
# The names of input and output files. The placeholder {language} is replaced with the language name.
|
||||
|
|
|
@ -74,7 +74,9 @@ configs = [
|
|||
utils.LanguageConfig(
|
||||
"java", "Java", ".java", "java/ql/src/meta/frameworks/Coverage.ql", ["java/ql/lib/config/semmlecode.dbscheme", "java/ql/src/config/semmlecode.dbscheme"]),
|
||||
utils.LanguageConfig(
|
||||
"csharp", "C#", ".cs", "csharp/ql/src/meta/frameworks/Coverage.ql", ["csharp/ql/lib/semmlecode.csharp.dbscheme", "csharp/ql/src/semmlecode.csharp.dbscheme"])
|
||||
"csharp", "C#", ".cs", "csharp/ql/src/meta/frameworks/Coverage.ql", ["csharp/ql/lib/semmlecode.csharp.dbscheme", "csharp/ql/src/semmlecode.csharp.dbscheme"]),
|
||||
utils.LanguageConfig(
|
||||
"go", "Go", ".go", "go/ql/src/meta/frameworks/Coverage.ql", ["go/ql/lib/go.dbscheme", "go/ql/src/go.dbscheme"])
|
||||
]
|
||||
|
||||
output_prefix = "framework-coverage-timeseries-"
|
||||
|
|
|
@ -21,4 +21,4 @@ output_csv_file_name = "coverage.csv"
|
|||
repo_output_rst = documentation_folder + output_rst_file_name
|
||||
repo_output_csv = documentation_folder + output_csv_file_name
|
||||
|
||||
languages = ['java', 'csharp']
|
||||
languages = ['java', 'csharp', 'go']
|
||||
|
|
Загрузка…
Ссылка в новой задаче